add Content-Type to JSON response of QueryResultResource

This commit is contained in:
Tsuyoshi Tatsukawa 2016-09-27 15:14:32 +09:00
parent 808fdd4507
commit 3b6017495e

View File

@ -162,7 +162,8 @@ class QueryResultResource(BaseResource):
def make_json_response(self, query_result):
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
def make_csv_response(query_result):