Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | HTTP::Headers#key? correctly converts | schneems | 2014-05-07 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | 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 | ||||
* | `Http::Headers` directly modifies the passed environment. | Yves Senn | 2013-03-15 | 1 | -6/+16 |
| | | | | | | | | | The env hash passed to `Http::Headers#new` must be in env format. Also be aware that the passed hash is modified directly. docs and test-cases for setting headers/env in functional tests. Follow up to #9700. | ||||
* | `Http::Headers` respects dotted env vars, symbols, headers with numbers. | Yves Senn | 2013-03-13 | 1 | -0/+27 |
| | |||||
* | allow headers and env to be passed in `IntegrationTest`. | Yves Senn | 2013-03-13 | 1 | -1/+44 |
| | | | | Closes #6513. | ||||
* | refactor, `Http::Headers` stores headers in env notation | Yves Senn | 2013-03-13 | 1 | -12/+21 |
| | | | | | Also: cleanup, use consistent syntax for `Http::Header` and test. | ||||
* | Http::Headers respects headers that are not prefixed with HTTP_ | Yves Senn | 2013-03-13 | 1 | -6/+13 |
| | |||||
* | add test for fetch with a block | Aaron Patterson | 2012-10-18 | 1 | -0/+4 |
| | |||||
* | prefer composition over inheritence | Aaron Patterson | 2012-10-18 | 1 | -0/+16 |
| | |||||
* | Enable ActionDispatch::Http::Headers to support fetch | Mark Turner | 2012-05-02 | 1 | -0/+5 |
| | |||||
* | Move dispatch related tests into test/dispatch | Joshua Peek | 2009-01-28 | 1 | -0/+16 |