Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed May 19, 2020
1 parent 657d755 commit f5aaf42
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions synapse/http/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ class OptionsOnlyResource(resource.Resource):
All other requests return a 404.
"""

def render(self, request):
if request.method == b"OPTIONS":
code, response_json_object = _options_handler(request)
Expand All @@ -419,11 +420,7 @@ def render(self, request):
code, response_json_object = 404, {}

return respond_with_json(
request,
code,
response_json_object,
send_cors=False,
canonical_json=False,
request, code, response_json_object, send_cors=False, canonical_json=False,
)

def getChild(self, name, request):
Expand Down

0 comments on commit f5aaf42

Please sign in to comment.