diff --git a/pygeoapi/api.py b/pygeoapi/api.py index 103cac2..00f1160 100644 --- a/pygeoapi/api.py +++ b/pygeoapi/api.py @@ -1271,6 +1271,8 @@ class API: return headers, 200, content + headers['Content-Type'] = 'application/schema+json' + return headers, 200, to_json(queryables, self.pretty_print) @gzip diff --git a/tests/test_api.py b/tests/test_api.py index 2ade9ab..ea2ae3c 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -536,6 +536,7 @@ def test_get_collection_queryables(config, api_): req = mock_request({'f': 'json'}) rsp_headers, code, response = api_.get_collection_queryables(req, 'obs') + assert rsp_headers['Content-Type'] == 'application/schema+json' queryables = json.loads(response) assert 'properties' in queryables