Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hack to send request using Net::HTTP with preserved headers case
class CaseSensitiveHeadersPost < Net::HTTP::Post
def initialize_http_header(headers)
@header = {}
headers.each do |k,v|
@header[k] = [v]
end
end
def capitalize(name)
name
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment