Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove deprecated `ActionDispatch::Response#to_ary` | Rafael Mendonça França | 2015-01-04 | 1 | -16/+2 | |
| | ||||||
* | Add support for Rack::ContentLength middelware | Javan Makhmali | 2014-09-06 | 1 | -0/+14 | |
| | ||||||
* | Deprecate implicit AD::Response splatting and Array conversion | Jeremy Kemper | 2014-09-06 | 1 | -3/+17 | |
| | ||||||
* | Restore Response.default_headers after test. | Zuhao Wan | 2014-06-05 | 1 | -2/+4 | |
| | ||||||
* | Do note remove `Content-Type` when `render :body` | Prem Sichanugrist | 2014-03-05 | 1 | -8/+0 | |
| | | | | | | | | | | | | | `render :body` should just not set the `Content-Type` header. By removing the header, it breaks the compatibility with other parts. After this commit, `render :body` will returns `text/html` content type, sets by default from `ActionDispatch::Response`, and it will preserve the overridden content type if you override it. Fixes #14197, #14238 This partially reverts commit 3047376870d4a7adc7ff15c3cb4852e073c8f1da. | |||||
* | Add `#no_content_type` attribute to `AD::Response` | Prem Sichanugrist | 2014-02-18 | 1 | -1/+1 | |
| | | | | | Setting this attribute to `true` will remove the content type header from the request. This is use in `render :body` feature. | |||||
* | Introduce `render :body` for render raw content | Prem Sichanugrist | 2014-02-18 | 1 | -0/+8 | |
| | | | | | | | | | | | | This is an option for sending a raw content back to browser. Note that this rendering option will unset the default content type and does not include "Content-Type" header back in the response. You should only use this option if you are expecting the "Content-Type" header to not be set. More information on "Content-Type" header can be found on RFC 2616, section 7.2.1. Please see #12374 for more detail. | |||||
* | Prevent [response].flatten from recursing infinitely. | Dan Kang | 2014-02-08 | 1 | -0/+9 | |
| | | | | | | Returning `self` from within the array returned by `to_ary` caused this. Instead, we can just substitute another object. It provides the `each` behavior required by the rack spec. | |||||
* | Add missing test for response destructuring. | Myron Marston | 2014-02-08 | 1 | -0/+9 | |
| | ||||||
* | update Rails::Railtie::Configuration and ↵ | Jon Kessler | 2013-08-16 | 1 | -0/+5 | |
| | | | | ActionDispatch::Response#respond_to? to accept include_private argument | |||||
* | Don't set X-UA-Compatible header by default | Guillermo Iguaran | 2013-06-13 | 1 | -3/+1 | |
| | | | | | | We are setting this header to chrome=1 for Chrome Frame and this will be retired soon. Check http://blog.chromium.org/2013/06/retiring-chrome-frame.html for details | |||||
* | Add 'X-UA-Compatible' => 'chrome=1' to default headers | Guillermo Iguaran | 2013-01-29 | 1 | -1/+3 | |
| | ||||||
* | Use Encoding::UTF_8 constant :do_not_litter: | Akira Matsuda | 2013-01-28 | 1 | -1/+1 | |
| | ||||||
* | Integrate Action Pack with Rack 1.5 | Carlos Antonio da Silva | 2013-01-25 | 1 | -1/+1 | |
| | | | | | | All ActionPack and Railties tests are passing. Closes #8891. [Carlos Antonio da Silva + Santiago Pastorino] | |||||
* | set default_headers to nil after use it to avoid order dependent tests | Francesco Rodriguez | 2012-09-08 | 1 | -25/+32 | |
| | ||||||
* | Added X-Content-Type-Options to the header defaults. | Jim Jones | 2012-08-18 | 1 | -1/+3 | |
| | | | | With a value of "nosniff", this prevents Internet Explorer from MIME-sniffing a response away from the declared content-type. | |||||
* | some tests | Egor Homakov | 2012-08-09 | 1 | -0/+27 | |
| | ||||||
* | adding a buffered stream to the response object | Aaron Patterson | 2012-07-29 | 1 | -0/+20 | |
| | ||||||
* | fix failure test 'test_can_wait_until_commit(ResponseTest)' in actionpack | Vladimir Strakhov | 2012-07-28 | 1 | -2/+2 | |
| | ||||||
* | threads can wait on responses to be committed | Aaron Patterson | 2012-07-27 | 1 | -0/+9 | |
| | ||||||
* | deprecate String#encoding_aware? and remove its usage | Sergey Nartimov | 2011-12-24 | 1 | -3/+0 | |
| | ||||||
* | use Array#join so that file encoding doesn't impact returned string. | Aaron Patterson | 2011-12-12 | 1 | -0/+9 | |
| | | | | Fixes #3957 | |||||
* | Use default charset when we read content type without charset. | kennyj | 2011-12-07 | 1 | -0/+11 | |
| | ||||||
* | Do not inherit from Rack::Response, remove a shit-ton of unused code. | José Valim | 2011-04-19 | 1 | -16/+0 | |
| | ||||||
* | cleaning up some warnings on 1.9.3 | Aaron Patterson | 2011-02-07 | 1 | -5/+5 | |
| | ||||||
* | Fix status initialization when custom status provided | Krekoten' Marjan | 2010-10-18 | 1 | -0/+4 | |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | Move ETag and ConditionalGet logic from AD::Response to the middleware stack. | José Valim | 2010-10-03 | 1 | -8/+3 | |
| | ||||||
* | Remove more warnings shadowing outer local variable. | Emilio Tagua | 2010-09-27 | 1 | -8/+8 | |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | Remove more warnings shadowing outer local variable. | Emilio Tagua | 2010-09-27 | 1 | -8/+8 | |
| | ||||||
* | Rely on set and delete cookie logic from rack. | José Valim | 2010-05-18 | 1 | -0/+4 | |
| | ||||||
* | Reinstate pending tests that were supposed to be fixed before the | Joshua Peek | 2010-02-19 | 1 | -16/+8 | |
| | | | | | | beta. Shout louder this time so they actually get fixed. | |||||
* | Cookies middleware | Joshua Peek | 2010-01-16 | 1 | -6/+3 | |
| | ||||||
* | Fix bare string Rack response bodies | Jeremy Kemper | 2009-12-23 | 1 | -2/+2 | |
| | ||||||
* | Pending tests for AD Response | Joshua Peek | 2009-12-17 | 1 | -0/+113 | |
| | ||||||
* | Don't need response prepare! | Joshua Peek | 2009-12-17 | 1 | -8/+0 | |
| | ||||||
* | Remove legacy processing and content_length | Yehuda Katz | 2009-08-02 | 1 | -4/+2 | |
| | | | | | | | | | | | * convert_content_type! is handled by assign_default_content_type_and_charset! * set_content_length! should be handled by the endpoint server. Otherwise each middleware that modifies the body has to do the expensive work of recalculating content_length. * convert_language! appears to be legacy. There are no tests for this * convert_cookies! should be handled by the new HeaderHash in Rack * Use an integer for .status's internal representation to avoid needing to do String manipulation just to find out the status | |||||
* | Update cache_control to be a Hash of options that is used to build the header. | Yehuda Katz | 2009-08-02 | 1 | -2/+2 | |
| | | | | * Significantly simplifies setting and modifying cache control in other areas | |||||
* | Move useful response test helpers into request | Joshua Peek | 2009-04-26 | 1 | -0/+47 | |
| | ||||||
* | Create a new file for response tests | Joshua Peek | 2009-04-26 | 1 | -0/+83 | |