Skip to content

Commit

Permalink
Build new version
Browse files Browse the repository at this point in the history
- Force POST requests #74
  • Loading branch information
deanishe committed Feb 28, 2016
1 parent 27a8126 commit 891db7f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_post_json(self):

def test_post_without_data(self):
"""POST request without data"""
url = BASE_URL + 'post'
url = self.httpbin + '/post'
r = web.post(url)
self.assert_(r.status_code == 200)
r.raise_for_status()
Expand Down
2 changes: 1 addition & 1 deletion workflow/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.16.0-beta
1.16.0-beta.3
4 changes: 2 additions & 2 deletions workflow/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import zlib


USER_AGENT = u'Alfred-Workflow/1.15 (+http://www.deanishe.net/alfred-workflow)'
USER_AGENT = u'Alfred-Workflow/1.16 (+http://www.deanishe.net/alfred-workflow)'

# Valid characters for multipart form data boundaries
BOUNDARY_CHARS = string.digits + string.ascii_letters
Expand Down Expand Up @@ -541,7 +541,7 @@ def request(method, url, params=None, data=None, headers=None, cookies=None,

headers['accept-encoding'] = ', '.join(encodings)

# Force a POST by providing an empty data string
# Force POST by providing an empty data string
if method == 'POST' and not data:
data = ''

Expand Down

0 comments on commit 891db7f

Please sign in to comment.