text/html is a bad default content type.

This commit is contained in:
Itamar Turner-Trauring 2023-05-01 11:42:02 -04:00
parent 5f19605075
commit fbd6dbda47

View File

@ -106,6 +106,9 @@ def _authorization_decorator(required_secrets):
def decorator(f):
@wraps(f)
def route(self, request, *args, **kwargs):
# Don't set text/html content type by default:
request.defaultContentType = None
with start_action(
action_type="allmydata:storage:http-server:handle-request",
method=request.method,