csordasmarton opened a new pull request #2491: URL: https://github.com/apache/thrift/pull/2491
Based on the python source for `http.client`, `HTTPConnection.putheader` can only be called after a request has been started, and before it's been sent. Otherwise it will throw a `http.client.CannotSendHeader` exception. If the server returns a `Set-Cookie` header, the client will always fail with the `CannotSendHeader` exception because `HTTPConnection.putheader` is called after reading the response. With this patch we will call this method before the request has been sent. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@thrift.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org