From 93108b2b72c657289754330164a7ef38dd32dc89 Mon Sep 17 00:00:00 2001 From: Diego Cepeda Date: Thu, 3 Feb 2022 10:00:36 -0800 Subject: [PATCH] fix iris mobile hmac bug --- src/iris_relay/app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/iris_relay/app.py b/src/iris_relay/app.py index 1b857d2..4aef655 100644 --- a/src/iris_relay/app.py +++ b/src/iris_relay/app.py @@ -725,10 +725,7 @@ def __call__(self, req, resp): path += '?%s' % req.query_string try: if req.method == 'POST': - body = b'' - if req.context['body']: - body = req.context['body'] - result = self.iris_client.post(path, body) + result = self.iris_client.post(path, data=req.context['body'].decode('utf-8')) elif req.method == 'GET': result = self.iris_client.get(path) elif req.method == 'OPTIONS':