From e56d909fe20107f00875854c0ae19e72753fc79a Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Wed, 31 Jul 2019 05:36:23 +0000 Subject: [PATCH] Fix relay crashing on signed GET requests --- relay/http_signatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/http_signatures.py b/relay/http_signatures.py index 619a3ac..aca00bc 100644 --- a/relay/http_signatures.py +++ b/relay/http_signatures.py @@ -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')