Skip to content

Commit

Permalink
Merge pull request #33 from disqus/SetContentType
Browse files Browse the repository at this point in the history
Set Content-Type header when making a POST request.
  • Loading branch information
tail authored Oct 4, 2016
2 parents f932eb5 + 34298e4 commit 605f33c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions disqusapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def _request(self, endpoint=None, **kwargs):
data = ''
else:
data = urllib.urlencode(params)
headers['Content-Type'] = 'application/x-www-form-urlencoded'

conn = httplib.HTTPSConnection(HOST, timeout=api.timeout)
conn.request(method, path, data, headers)
Expand Down

0 comments on commit 605f33c

Please sign in to comment.