Skip to content

Commit 24c0c6a

Browse files
committed
make SonarCloud happy, hopefully, even though theres really ~0 risk
1 parent 31fab9d commit 24c0c6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/endpoints/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,5 @@ def diags():
132132
# (but only when initiated purposefully by us to keep junk out of the logs)
133133
_require_admin()
134134
log_info_with_request("diagnostics", headers=request.headers)
135-
return make_response(f"request path: {request.headers.get('X-Forwarded-For', 'idk')}", 200)
135+
response_text = f"request path: {request.headers.get('X-Forwarded-For', 'idk')}"
136+
return make_response(response_text, 200, {'content-type': 'text/plain'})

0 commit comments

Comments
 (0)