summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/util/request_helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/util/request_helpers.py b/src/leap/util/request_helpers.py
index e06dabb8..350abfbd 100644
--- a/src/leap/util/request_helpers.py
+++ b/src/leap/util/request_helpers.py
@@ -41,7 +41,7 @@ def get_content(request):
contents = ""
mtime = None
- if request.json:
+ if request.content and request.json:
if callable(request.json):
contents = json.dumps(request.json())
else: