Skip to content

Commit

Permalink
update content type to expect appropriate mime type for geojson (geo+…
Browse files Browse the repository at this point in the history
…json)
  • Loading branch information
kim committed Apr 3, 2024
1 parent 3650169 commit 9e0ae5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion yml_tests/test_baseline_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def jsonToDict(json_data):
else:
content_type = "download"
## GEOJSON
elif content_type == "geojson":
elif content_type == "geo+json":
content_type = "geojson"
if file_content == '{\n "features": [],\n "type": "FeatureCollection"\n}':
content_type = "empty geojson"

Expand Down
3 changes: 2 additions & 1 deletion yml_tests/test_url_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ def jsonToDict(json_data):
else:
content_type = "x-python"
## GEOJSON
elif content_type == "geojson":
elif content_type == "geo+json":
content_type = "geojson"
if file_content == '{\n "features": [],\n "type": "FeatureCollection"\n}':
content_type = "empty geojson"

Expand Down

0 comments on commit 9e0ae5f

Please sign in to comment.