Skip to content

Commit d1f5753

Browse files
authored
Merge pull request rails#54227 from Tapjoy/fix/http-method-acronyms
Fix ActionDispatch::Request::HTTP_METHOD_LOOKUP being impacted by inflections from gems
2 parents 3b6b6c2 + 188d8e1 commit d1f5753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/http/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def key?(key)
138138

139139
# Populate the HTTP method lookup cache.
140140
HTTP_METHODS.each { |method|
141-
HTTP_METHOD_LOOKUP[method] = method.underscore.to_sym
141+
HTTP_METHOD_LOOKUP[method] = method.downcase.underscore.to_sym
142142
}
143143

144144
alias raw_request_method request_method # :nodoc:

0 commit comments

Comments
 (0)