mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-27 16:28:53 +00:00
text/html is a bad default content type.
This commit is contained in:
parent
5f19605075
commit
fbd6dbda47
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user