Skip to content

Instantly share code, notes, and snippets.

@rwrrll
Created October 12, 2016 16:28
Show Gist options
  • Save rwrrll/29b57daae3ec1c9cd8d76165864561d0 to your computer and use it in GitHub Desktop.
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
# 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