fix(portal-api): serve portal JSON with an explicit JSON content type

This commit is contained in:
Adam Moussa 2026-09-21 15:09:50 -04:00
parent ca44834732
commit 959dbc43d4
No known key found for this signature in database

View file

@ -82,7 +82,13 @@ def create_app() -> Flask:
)
if status == 204:
return Response(b"", status=204, headers=headers)
return Response(encode_body(payload), status=status, headers=headers)
return Response(
encode_body(payload),
status=status,
headers=headers,
mimetype="application/json",
content_type="application/json",
)
@app.route("/roster", methods=["PUT"])
def roster_put():