1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
rest-client--rest-client/lib
Andy Brody 4ba9f7ee63 Skip netrc with Authorization header, up/downcase.
The fix for the Netrc user/password overriding a user-set Authorization
header that was committed in #374 was case-sensitive and does not cover
users who pass `:authorization` or `"authorization"` as the header name.

Add @processed_headers_lowercase so that case-insensitive tests like
this are easier in the future. It would be better if
`Request#stringify_headers` normalized both Symbols and Strings.
https://github.com/rest-client/rest-client/issues/599

Also add a test for the case-insensitive behavior.

Fixes: #524, #550
2017-05-04 01:20:00 -04:00
..
restclient Skip netrc with Authorization header, up/downcase. 2017-05-04 01:20:00 -04:00
rest-client.rb more logical way to require the library. Closes #20 2010-04-15 17:55:36 +02:00
rest_client.rb Merge commit 'technoweenie/multipart_streaming' into prereorg 2009-08-12 12:37:21 -04:00
restclient.rb Add some tests for accept_encoding behavior. 2017-05-03 23:19:05 -04:00