summaryrefslogtreecommitdiff
path: root/src/leap/util/request_helpers.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-07-04 18:27:02 -0300
committerTomás Touceda <chiiph@leap.se>2013-07-05 16:12:15 -0300
commit4f74133db5595b556b84e173a2e754f469eeb2c2 (patch)
treef3da10ce2e9c9d2b8953f13ade26c659144d383f /src/leap/util/request_helpers.py
parentbd25a726021192f13df509fb8e25ccacd50f43a7 (diff)
Check if request content is None before doing anything
Diffstat (limited to 'src/leap/util/request_helpers.py')
-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: