Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add geojson to known mime types #1022

Merged
merged 1 commit into from
Jan 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Improvements
- Better parse svs pixel size in tiff and tifffile sources ([#1021](../../pull/1021))
- Add geojson to known mime types ([#1022](../../pull/1022))

## 1.19.1

Expand Down
1 change: 1 addition & 0 deletions girder/girder_large_image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def handleFileSave(event):
for mimeType, ext, std in [
('text/yaml', '.yaml', True),
('text/yaml', '.yml', True),
('application/vnd.geo+json', '.geojson', True),
]:
if ext not in mimetypes.types_map:
mimetypes.add_type(mimeType, ext, std)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const Formats = {
}
}
};
Formats['application/vnd.geo+json'] = Formats['application/json'];
Formats['text/x-yaml'] = Formats['text/yaml'];

function lintGirderIni(text, callback) {
Expand Down