diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-28 09:55:16 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-28 09:55:16 +0100 |
commit | d1cbb124997166292eed2f7cfb25c82d82792226 (patch) | |
tree | 655a29c97f058076425558f8ce9c48651639112e /pyaggr3g470r/views/api | |
parent | Merge branch 'master' of bitbucket.org:cedricbonhomme/pyaggr3g470r (diff) | |
download | newspipe-d1cbb124997166292eed2f7cfb25c82d82792226.tar.gz newspipe-d1cbb124997166292eed2f7cfb25c82d82792226.tar.bz2 newspipe-d1cbb124997166292eed2f7cfb25c82d82792226.zip |
It is now possible to delete all duplicate articles with one request.
Diffstat (limited to 'pyaggr3g470r/views/api')
-rw-r--r-- | pyaggr3g470r/views/api/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/api/common.py b/pyaggr3g470r/views/api/common.py index b1b0cd73..424df960 100644 --- a/pyaggr3g470r/views/api/common.py +++ b/pyaggr3g470r/views/api/common.py @@ -205,7 +205,8 @@ class PyAggResourceMulti(PyAggAbstractResource): def delete(self): """will delete several objects, a list of their ids should be in the payload""" - if 'application/json' != request.headers.get('Content-Type'): + if 'application/json' not in request.headers.get('Content-Type'): + print(request.headers.get('Content-Type')) raise BadRequest("Content-Type must be application/json") status = 204 results = [] |