fix JSON MIME types
This commit is contained in:
@@ -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
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user