mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
add Content-Type to JSON response of QueryResultResource
This commit is contained in:
parent
808fdd4507
commit
3b6017495e
@ -162,7 +162,8 @@ class QueryResultResource(BaseResource):
|
|||||||
|
|
||||||
def make_json_response(self, query_result):
|
def make_json_response(self, query_result):
|
||||||
data = json.dumps({'query_result': query_result.to_dict()}, cls=utils.JSONEncoder)
|
data = json.dumps({'query_result': query_result.to_dict()}, cls=utils.JSONEncoder)
|
||||||
return make_response(data, 200, {})
|
headers = {'Content-Type': "application/json"}
|
||||||
|
return make_response(data, 200, headers)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def make_csv_response(query_result):
|
def make_csv_response(query_result):
|
||||||
|
Loading…
Reference in New Issue
Block a user