aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-28 10:26:34 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-28 10:26:34 +0100
commit3bff51bc47e9c52de37773a2aad3c3682ab42704 (patch)
treeeb569d2e58c130d31734276dc800870f8b90a9e7 /pyaggr3g470r
parentTest of the headers was to strict. (diff)
downloadnewspipe-3bff51bc47e9c52de37773a2aad3c3682ab42704.tar.gz
newspipe-3bff51bc47e9c52de37773a2aad3c3682ab42704.tar.bz2
newspipe-3bff51bc47e9c52de37773a2aad3c3682ab42704.zip
Typo...
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views/api/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/api/common.py b/pyaggr3g470r/views/api/common.py
index 405d6b2c..b8477d4b 100644
--- a/pyaggr3g470r/views/api/common.py
+++ b/pyaggr3g470r/views/api/common.py
@@ -163,7 +163,7 @@ class PyAggResourceMulti(PyAggAbstractResource):
def post(self):
"""creating several objects. payload should be a list of dict.
"""
- if 'application/json' not int request.headers.get('Content-Type'):
+ if 'application/json' not in request.headers.get('Content-Type'):
raise BadRequest("Content-Type must be application/json")
status = 201
results = []
bgstack15