fix JSON MIME types

This commit is contained in:
Tom Kralidis
2022-05-13 13:48:15 +00:00
parent 2b994b8384
commit 3ebdbded9a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ The below template provides a minimal example (let's call the file ``mycooljsonf
"""Inherit from parent class"""
super().__init__({'name': 'cooljson', 'geom': None})
self.mimetype = 'text/json; subtype:mycooljson'
self.mimetype = 'application/json; subtype:mycooljson'
def write(self, options={}, data=None):
"""custom writer"""
+1 -1
View File
@@ -1081,7 +1081,7 @@ class API:
for qt in p.get_query_types():
collection['links'].append({
'type': 'text/json',
'type': 'application/json',
'rel': 'data',
'title': '{} query for this collection as JSON'.format(qt), # noqa
'href': '{}/{}/{}?f={}'.format(