Created
October 12, 2016 16:28
-
-
Save rwrrll/29b57daae3ec1c9cd8d76165864561d0 to your computer and use it in GitHub Desktop.
Monkey patch to prevent Net::HTTP from capitalising header keys on Ruby 2.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://github.com/jnunemaker/httparty/issues/406#issuecomment-239542015 | |
module Net::HTTPHeader | |
def capitalize(name) | |
name | |
end | |
private :capitalize | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment