aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/api
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-28 09:55:16 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-28 09:55:16 +0100
commitd1cbb124997166292eed2f7cfb25c82d82792226 (patch)
tree655a29c97f058076425558f8ce9c48651639112e /pyaggr3g470r/views/api
parentMerge branch 'master' of bitbucket.org:cedricbonhomme/pyaggr3g470r (diff)
downloadnewspipe-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.py3
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 = []
bgstack15