do you know why Rails always convert all header keys to downcase?
the example I have a request like this :
uri = URI.parse("https://yoururl.com")
request = Net::HTTP::Post.new(uri)
request.add_feild("Code", "asdasdd212312312SDw")
request.content_type = "application/json"
request["Accept"] = "text/plain"
request['RequestSignature'] = "/DlWKm99HgYLXKJTdiSBO"
but when I check request.each_header.entries, I got results like this :
[["accept-encoding", "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], ["accept", "text/plain"], ["user-agent", "Ruby"], ["host", "your-api"], ["content-type", "application/json"], ["requestsignature", "123"]]
seems like all the headers converted to downcase. do you know how to make the header still consistent with the input?