mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:56:07 -04:00
Raise a SynapseError if the authorisation header is missing or malformed
This commit is contained in:
parent
75e517a2da
commit
25d80f35f1
2 changed files with 31 additions and 19 deletions
|
@ -79,6 +79,10 @@ class MockHttpResource(HttpServer):
|
|||
mock_request.method = http_method
|
||||
mock_request.uri = path
|
||||
|
||||
mock_request.requestHeaders.getRawHeaders.return_value=[
|
||||
"X-Matrix origin=test,key=,sig="
|
||||
]
|
||||
|
||||
# return the right path if the event requires it
|
||||
mock_request.path = path
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue