Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Fix duplicated Host in headers of http client post.
Browse files Browse the repository at this point in the history
  • Loading branch information
keitheis committed Jul 20, 2016
1 parent aa3ca2b commit 65c038a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thriftpy/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def flush(self):
self.__wbuf = BytesIO()

# HTTP request
self.__http.putrequest('POST', self.path)
self.__http.putrequest('POST', self.path, skip_host=True)

# Write headers
self.__http.putheader('Host', self.host)
Expand Down

0 comments on commit 65c038a

Please sign in to comment.