aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/response.rb
Commit message (Collapse)AuthorAgeFilesLines
* Removed dead convert_expires! in Response [#1952 state:resolved]Joshua Peek2009-02-161-5/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Update bundled Rack for Ruby 1.9 spec changesJoshua Peek2009-02-071-1/+1
|
* Deprecate ActionController::Response#set_cookie :http_only option infavor of ↵Joshua Peek2009-02-071-0/+3
| | | | :httponly
* Temporarily bundle Rack 1.0 prerelease for testingJoshua Peek2009-02-071-25/+4
|
* Ruby 1.9 compat: call bytesize for content_lengthEugene Pimenov2009-02-061-1/+1
| | | | | | [#1881 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove Content-Length header from :no_content responsesJeremy Kemper2009-01-071-3/+6
|
* Switch to Rack::Response#set_cookie instead of using CGI::Cookie to build ↵Joshua Peek2008-12-201-20/+34
| | | | cookie headers
* Rename AbstractResponse to Response and inheirt from Rack::ResponseJoshua Peek2008-12-191-34/+61
|
* Process CGI 'cookie' header into 'Set-Cookie' for all responses.Joshua Peek2008-12-191-16/+35
| | | | This mostly affects response.headers['cookie'] for test requests. Use response.cookies instead.
* Use status response accessor instead of the 'Status' headerJoshua Peek2008-12-191-5/+3
|
* Do not output an ETag header if response body is blank or when sending files ↵Hongli Lai (Phusion2008-12-161-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 Hansson2008-10-211-12/+21
| | | | have already been set [DHH/José Valim]
* Sanitize the URLs passed to redirect_to to prevent a potential response ↵Michael Koziarski2008-10-191-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 responsesJonathan del Strother2008-09-021-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 Kemper2008-08-211-6/+30
| | | | = nil.
* Set cache control to require revalidation if cache freshness response ↵Jeremy Kemper2008-08-141-5/+14
| | | | headers are set. Don't set Content-Length header if 304 status.
* Simplifying usage of ETags and Last-Modified and conditional GET requestsJeremy Kemper2008-08-071-26/+28
|
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge docrails changesPratik Naik2008-07-281-3/+45
|
* etag! and last_modified! conditional GET helpersJeremy Kemper2008-07-171-6/+34
|
* Add :status to redirect_to allowing users to choose their own response code ↵Michael Koziarski2007-10-091-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 Koziarski2007-08-121-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 Kemper2007-03-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix tests depending too deepDavid Heinemeier Hansson2007-02-191-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Its ETag not EtagDavid Heinemeier Hansson2007-02-191-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 Hansson2007-02-191-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 onDavid Heinemeier Hansson2007-02-191-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 Hansson2007-02-191-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 Hansson2006-11-261-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 Hansson2006-09-171-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 Molina2006-05-171-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 refactoringDavid Heinemeier Hansson2005-05-221-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 Hansson2005-05-221-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 Hansson2004-12-311-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 Hansson2004-12-311-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
* InitialDavid Heinemeier Hansson2004-11-241-0/+15
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de