diff --git a/thriftpy/http.py b/thriftpy/http.py index 1e5a6c8..7cb2325 100644 --- a/thriftpy/http.py +++ b/thriftpy/http.py @@ -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)