Skip to content

Commit

Permalink
added content type header to tz response
Browse files Browse the repository at this point in the history
  • Loading branch information
deronsmith committed Oct 9, 2024
1 parent 6c4f753 commit c4698ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hms_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def get(self):
results = get_timezone(args.latitude, args.longitude)
t1 = time.time()
logging.info(f"TZ info: {results}, runtime: {round(t1-t0, 4)} sec")
return Response(json.dumps(results))
return Response(json.dumps(results), content_type="application/json")


class HMSRevokeTask(Resource):
Expand Down

0 comments on commit c4698ed

Please sign in to comment.