From 47e0a58a22df0ce68bdc10514489526984403e1a Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Wed, 29 May 2019 10:55:55 +0100 Subject: [PATCH] Body of IncomingMessage is json-encoded, not Python encoded --- django_kepi/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_kepi/views.py b/django_kepi/views.py index 89be221..f66a0d9 100644 --- a/django_kepi/views.py +++ b/django_kepi/views.py @@ -315,7 +315,7 @@ class InboxView(django.views.View): path = request.path, signature = request.META['HTTP_SIGNATURE'], content_type = request.META['CONTENT_TYPE'], - body = str(decoded_body) + body = json.dumps(decoded_body), ) capture.save() logger.debug('%s: received %s with headers %s at %s -- now validating',