I believe, there's inconsistency between how Rails and curl normalize header names. If I do a `curl -H "some_header: value"` it will send the header as `HTTP_SOME_HEADER`. Then in Rails controller I would expect that header to be accessible as `request.headers[:some_header]`, but it's not. The culprit is in the `ActionDispatch::Http::Headers#env_name <https://github.com/rails/rails/blob/e994fa11cfdb3fc6d96068dbb40c309783563b04/actionpack/lib/action_dispatch/http/headers.rb#L89-L96>`, which doesn't adjust the header name if it contains an underscore. Which of the two is correct? Do you think the issue could addressed in Rails? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e4f3233e-b4fa-4358-91bd-7b21b60f6b03%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.