Commit 723f286f authored by kaniini's avatar kaniini

Merge branch 'patch-2' into 'master'

Fix relay crashing on signed GET requests

See merge request !18
parents 2eb17041 e56d909f
......@@ -122,7 +122,7 @@ async def http_signatures_middleware(app, handler):
async def http_signatures_handler(request):
request['validated'] = False
if 'signature' in request.headers:
if 'signature' in request.headers and request.method == 'POST':
data = await request.json()
if 'actor' not in data:
raise aiohttp.web.HTTPUnauthorized(body='signature check failed, no actor in message')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment