1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
schneems ca97ec5099 HTTP::Headers#key? correctly converts
Previously if you were looking for a given key, the header may incorrectly tell you that it did not exist even though it would return a valid value:

```ruby
env     = { "CONTENT_TYPE" => "text/plain" }
headers = ActionDispatch::Http::Headers.new(env)
headers["Content-Type"] 
# => "text/plain"

headers.key?("Content-Type")
# => false
```

This PR fixes that behavior by converting the key before checking for presence
2014-05-07 12:01:34 -05:00
..
abstract Action Pack Variants 2013-12-04 00:13:16 +01:00
assertions Change all MiniTest to Minitest since, MiniTest namespace has been renamed to Minitest 2013-12-18 14:39:50 +05:30
controller Merge pull request #14945 from tomkadwill/form_authenticity_param_refactor 2014-05-06 14:30:21 -03:00
dispatch HTTP::Headers#key? correctly converts 2014-05-07 12:01:34 -05:00
fixtures Ensure LookupContext in Digestor selects correct variant 2014-03-09 08:47:17 +01:00
journey Make URL escaping more consistent 2014-04-20 10:11:38 +01:00
lib/controller Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00
routing
tmp
abstract_unit.rb standardize on jruby_skip & rbx_skip 2014-01-13 19:51:47 +05:30