Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Removed dead convert_expires! in Response [#1952 state:resolved] | Joshua Peek | 2009-02-16 | 1 | -5/+0 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Update bundled Rack for Ruby 1.9 spec changes | Joshua Peek | 2009-02-07 | 1 | -1/+1 |
| | |||||
* | Deprecate ActionController::Response#set_cookie :http_only option infavor of ↵ | Joshua Peek | 2009-02-07 | 1 | -0/+3 |
| | | | | :httponly | ||||
* | Temporarily bundle Rack 1.0 prerelease for testing | Joshua Peek | 2009-02-07 | 1 | -25/+4 |
| | |||||
* | Ruby 1.9 compat: call bytesize for content_length | Eugene Pimenov | 2009-02-06 | 1 | -1/+1 |
| | | | | | | [#1881 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Remove Content-Length header from :no_content responses | Jeremy Kemper | 2009-01-07 | 1 | -3/+6 |
| | |||||
* | Switch to Rack::Response#set_cookie instead of using CGI::Cookie to build ↵ | Joshua Peek | 2008-12-20 | 1 | -20/+34 |
| | | | | cookie headers | ||||
* | Rename AbstractResponse to Response and inheirt from Rack::Response | Joshua Peek | 2008-12-19 | 1 | -34/+61 |
| | |||||
* | Process CGI 'cookie' header into 'Set-Cookie' for all responses. | Joshua Peek | 2008-12-19 | 1 | -16/+35 |
| | | | | This mostly affects response.headers['cookie'] for test requests. Use response.cookies instead. | ||||
* | Use status response accessor instead of the 'Status' header | Joshua Peek | 2008-12-19 | 1 | -5/+3 |
| | |||||
* | Do not output an ETag header if response body is blank or when sending files ↵ | Hongli Lai (Phusion | 2008-12-16 | 1 | -1/+5 |
| | | | | | | with send_file(... :xsendfile => true) [#1578 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Dont try to auto-set the etag based on the body if any freshness headers ↵ | David Heinemeier Hansson | 2008-10-21 | 1 | -12/+21 |
| | | | | have already been set [DHH/José Valim] | ||||
* | Sanitize the URLs passed to redirect_to to prevent a potential response ↵ | Michael Koziarski | 2008-10-19 | 1 | -2/+2 |
| | | | | | | splitting attack. CGI.rb and mongrel don't do any sanitization of the contents of HTTP headers, so care needs to be taken. | ||||
* | Don't set Content-Length on 304 responses | Jonathan del Strother | 2008-09-02 | 1 | -1/+1 |
| | | | | | | | | | Commit 8aad8c claimed to do this, but it checks for the 304 status too early, before handle_conditional_get! has overridden it. [#958 state:resolved] Signed-off-by: Jonathan del Strother <jon.delStrother@bestbefore.tv> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Move default content type and charset from Base to Response. Handle charset ↵ | Jeremy Kemper | 2008-08-21 | 1 | -6/+30 |
| | | | | = nil. | ||||
* | Set cache control to require revalidation if cache freshness response ↵ | Jeremy Kemper | 2008-08-14 | 1 | -5/+14 |
| | | | | headers are set. Don't set Content-Length header if 304 status. | ||||
* | Simplifying usage of ETags and Last-Modified and conditional GET requests | Jeremy Kemper | 2008-08-07 | 1 | -26/+28 |
| | |||||
* | Fix file permissions | Tarmo Tänav | 2008-07-31 | 1 | -0/+0 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Merge docrails changes | Pratik Naik | 2008-07-28 | 1 | -3/+45 |
| | |||||
* | etag! and last_modified! conditional GET helpers | Jeremy Kemper | 2008-07-17 | 1 | -6/+34 |
| | |||||
* | Add :status to redirect_to allowing users to choose their own response code ↵ | Michael Koziarski | 2007-10-09 | 1 | -2/+2 |
| | | | | | | without manually setting headers. Closes #8297 [codahale, chasgrundy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Send freshness information when sending Etags. Without this internet ↵ | Michael Koziarski | 2007-08-12 | 1 | -1/+1 |
| | | | | | | explorer will not send conditional gets for a resource, but instead hold on to the responses for the current browser session. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Prefer MIME constants to strings. Closes #7707. | Jeremy Kemper | 2007-03-06 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix tests depending too deep | David Heinemeier Hansson | 2007-02-19 | 1 | -1/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Its ETag not Etag | David Heinemeier Hansson | 2007-02-19 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Set cache-control to private if theres an etag available (and the ↵ | David Heinemeier Hansson | 2007-02-19 | 1 | -1/+1 |
| | | | | | | cache-control hasnt been overwritten already) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Dont ask for no caching if we have a etag to base that decision on | David Heinemeier Hansson | 2007-02-19 | 1 | -0/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Move etagging down to response, so renders with layouts dont screw it up [DHH] | David Heinemeier Hansson | 2007-02-19 | 1 | -7/+46 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix that redirects should set "Location" header, not "location", and remove ↵ | David Heinemeier Hansson | 2006-11-26 | 1 | -1/+1 |
| | | | | | | dead CGI.redirect git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added proper getters and setters for content type and charset [DHH] Added ↵ | David Heinemeier Hansson | 2006-09-17 | 1 | -0/+18 |
| | | | | | | utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add layout attribute to response object with the name of the layout that was ↵ | Marcel Molina | 2006-05-17 | 1 | -1/+1 |
| | | | | | | rendered, or nil if none rendered. [Kevin Clark kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Cure some ills discovered with the refactoring | David Heinemeier Hansson | 2005-05-22 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Deprecated redirect_to_path and redirect_to_url in favor of letting ↵ | David Heinemeier Hansson | 2005-05-22 | 1 | -1/+1 |
| | | | | | | redirect_to do the right thing when passed either a path or url. Introduced r as a unified method for render (still under construction) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added "short hypertext note with a hyperlink to the new URI(s)" to redirects ↵ | David Heinemeier Hansson | 2004-12-31 | 1 | -0/+2 |
| | | | | | | to fulfill compliance with RFC 2616 (HTTP/1.1) section 10.3.3 #397 [Tim Bates] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@294 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added second boolean parameter to Base.redirect_to_url and Response#redirect ↵ | David Heinemeier Hansson | 2004-12-31 | 1 | -2/+2 |
| | | | | | | to control whether the redirect is permanent or not (301 vs 302) #375 [Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Initial | David Heinemeier Hansson | 2004-11-24 | 1 | -0/+15 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |