Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.4
-
None
-
Patch Available
Description
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.