You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Tony Kamenick (JIRA)" <ji...@apache.org> on 2010/06/28 21:55:50 UTC
[jira] Updated: (THRIFT-811) http_client_transport.rb: allow custom
http headers
[ https://issues.apache.org/jira/browse/THRIFT-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tony Kamenick updated THRIFT-811:
---------------------------------
Attachment: custom_http_headers.patch
Allows setting of custom http headers in http_client_transport.rb
> 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)
> Reporter: Tony Kamenick
> Priority: Minor
> 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.