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

Commit

Permalink
Cover all return paths
Browse files Browse the repository at this point in the history
  • Loading branch information
JorikSchellekens committed Jul 24, 2019
1 parent 215a071 commit c85b834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/http/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def _get_handler_for_request(self, request):
None, or a tuple of (http code, response body).
"""
if request.method == b"OPTIONS":
return _options_handler, {}
return _options_handler, "options_request_handler", {}

# Loop through all the registered callbacks to check if the method
# and path regex match
Expand Down

0 comments on commit c85b834

Please sign in to comment.