mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 09:28:12 +08:00
CSP content hashes (#1406)
* remove duplicate content-type header * plumbing to compute CSP content hashes * add logging of missing CSP hashes * convert sub-class init protocol to static * factor function * lint
This commit is contained in:
@@ -30,4 +30,6 @@ def health_check(config):
|
||||
]
|
||||
health["status"] = "pass" if all(checks) else "fail"
|
||||
code = HTTPStatus.OK if health["status"] == "pass" else HTTPStatus.BAD_REQUEST
|
||||
return make_response(jsonify(health), code, {"Content-Type": "application/health+json"},)
|
||||
response = make_response(jsonify(health), code)
|
||||
response.headers["Content-Type"] = "application/health+json"
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user