diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-28 10:26:34 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-28 10:26:34 +0100 |
commit | 3bff51bc47e9c52de37773a2aad3c3682ab42704 (patch) | |
tree | eb569d2e58c130d31734276dc800870f8b90a9e7 | |
parent | Test of the headers was to strict. (diff) | |
download | newspipe-3bff51bc47e9c52de37773a2aad3c3682ab42704.tar.gz newspipe-3bff51bc47e9c52de37773a2aad3c3682ab42704.tar.bz2 newspipe-3bff51bc47e9c52de37773a2aad3c3682ab42704.zip |
Typo...
-rw-r--r-- | pyaggr3g470r/views/api/common.py | 2 |
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 = [] |