mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 08:43:55 -04:00
Add explicit content type to _status route
This commit is contained in:
@@ -14,7 +14,7 @@ def show_status():
|
|||||||
if request.args.get("simple", None):
|
if request.args.get("simple", None):
|
||||||
return jsonify(status="ok"), 200
|
return jsonify(status="ok"), 200
|
||||||
else:
|
else:
|
||||||
return (
|
response = make_response(
|
||||||
jsonify(
|
jsonify(
|
||||||
status="ok", # This should be considered part of the public API
|
status="ok", # This should be considered part of the public API
|
||||||
git_commit=version.__git_commit__,
|
git_commit=version.__git_commit__,
|
||||||
@@ -23,6 +23,8 @@ def show_status():
|
|||||||
),
|
),
|
||||||
200,
|
200,
|
||||||
)
|
)
|
||||||
|
response.headers["Content-Type"] = "application/json"
|
||||||
|
return response
|
||||||
|
|
||||||
|
|
||||||
@status.route("/_status/live-service-and-organization-counts")
|
@status.route("/_status/live-service-and-organization-counts")
|
||||||
|
|||||||
Reference in New Issue
Block a user