[ https://issues.apache.org/jira/browse/THRIFT-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury closed THRIFT-811. -------------------------------- Assignee: Tony Kamenick Fix Version/s: 0.4 Resolution: Fixed I just committed this. Thanks for the patch, Tony! > http_client_transport.rb: allow custom http headers > --------------------------------------------------- > > Key: THRIFT-811 > URL: https://issues.apache.org/jira/browse/THRIFT-811 > Project: Thrift > Issue Type: Improvement > Components: Library (Ruby) > Affects Versions: 0.4 > Reporter: Tony Kamenick > Assignee: Tony Kamenick > Priority: Minor > Fix For: 0.4 > > Attachments: custom_http_headers.patch > > > The http headers in http_client_transport.rb were defined locally in flush, > so the user could not easily specify custom headers. I made headers an > instance variable and created an add_headers() method that accepts a hash of > headers to send to the server. I included a test that fails before the patch > and succeeds afterward. My editor also moved some trailing white space that > was hanging out. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.