X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/32974185d5e2b1bdc197b4f5dcab259b5de3c6b4..f938afb8ab4cb091d12e0ef0311eaea14b774798:/lib/wlapi.py?ds=sidebyside diff --git a/lib/wlapi.py b/lib/wlapi.py index 0a674c8c..3284211a 100644 --- a/lib/wlapi.py +++ b/lib/wlapi.py @@ -38,7 +38,7 @@ def api_call(path, format="json"): # prepare request rq = urllib2.Request(self.base_url + path + ".json") - # will send POST when there is data, GET otherwise + # will send POST when there is data, GET otherwise if data is not None: rq.add_data(json.dumps(data)) rq.add_header("Content-Type", "application/json")