aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/request.rb
Commit message (Collapse)AuthorAgeFilesLines
* Force all internal calls to Array#to_sentence to use English [#2010 ↵David Heinemeier Hansson2009-02-271-1/+1
| | | | state:resolved]
* Temporarily bundle Rack 1.0 prerelease for testingJoshua Peek2009-02-071-4/+27
|
* Dont use Memoizable for ActionController::RequestPratik Naik2009-01-271-27/+15
|
* Merge docrailsPratik Naik2009-01-181-5/+7
|
* Build query string and POST params parser on top of Rack::Request. Also ↵Joshua Peek2009-01-171-10/+24
| | | | switch our multipart parser to use Racks. Moved XML, JSON, and YAML parsers into ActionController::ParamsParser middleware [#1661 state:resolved]
* Ensure we override Rack::Request's POST method tooJoshua Peek2009-01-091-1/+4
|
* Refactor request query string parsing testsJoshua Peek2009-01-091-1/+3
|
* Inherit ActionController::Request from Rack::RequestJoshua Peek2009-01-091-28/+6
|
* Memoize request accessors on the Rack env so other request objects have ↵Joshua Peek2009-01-041-12/+8
| | | | access to the same cache [#1668 state:resolved]
* Use rack namespace for routing argsJoshua Peek2008-12-281-2/+2
|
* Make router and controller classes better rack citizensJoshua Peek2008-12-281-2/+2
|
* Request#env['SERVER_NAME'] does not contain port numberPratik Naik2008-12-281-1/+1
|
* Move request parsing related code to ActionController::RequestParserPratik Naik2008-12-251-416/+7
|
* ActionController::VerbPiggybacking middlewareJoshua Peek2008-12-231-11/+9
|
* Remove duplicate attr_reader :envPratik Naik2008-12-231-4/+2
|
* Unify ActionController::AbstractRequest and ActionController::RequestPratik Naik2008-12-231-76/+47
|
* Use Rack::MockRequest for TestRequestPratik Naik2008-12-231-12/+1
|
* Rename RackRequest to RequestPratik Naik2008-12-231-1/+1
|
* Remove rack_process.rbPratik Naik2008-12-231-0/+72
|
* Remove deprecated relative_url_rootPratik Naik2008-12-231-7/+0
|
* Making the IP Spoofing check in AbstractRequest#remote_ip configurable.Darren Boyd2008-12-011-1/+1
| | | | | | | | | | | | | | Certain groups of web proxies do not set these values properly. Notably, proxies for cell phones, which often do not set the remote IP information correctly (not surprisingly, since the clients do not have an IP address). Allowing this to be configurable makes it possible for developers to choose to ignore this simple spoofing check, when a significant amount of their traffic would result in false positives anyway. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1200 state:committed]
* Simplify Request#pathJeremy Kemper2008-11-301-5/+3
|
* Simplify REMOTE_ADDR parsingJeremy Kemper2008-11-301-1/+1
|
* Fix stupid typoMichael Koziarski2008-11-061-1/+1
|
* Backwards compatibility fixes for relative_url_rootMichael Koziarski2008-11-021-1/+2
| | | | | * Make the old deprecated relative_url_root still set the value as it's still used by mongrel * Set the default from the ENV value when the file is required, not at runtime.
* Added stale?/fresh? and fresh_when methods to provide a layer of abstraction ↵David Heinemeier Hansson2008-10-211-2/+12
| | | | above request.fresh? and friends [DHH]
* Remove unneeded interning.Michael Koziarski2008-09-301-3/+2
|
* Merge docrailsPratik Naik2008-09-031-32/+37
|
* Request#remote_ip handles the uncommon case that REMOTE_ADDR is a ↵Michael S. Klishin2008-08-271-3/+5
| | | | | | | | comma-separated list. [#523 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make AbstractRequest.if_modified_sense return nil if the header could not be ↵Jamis Buck2008-08-191-1/+1
| | | | parsed
* Update tests for request memoizationJeremy Kemper2008-08-081-12/+13
|
* Simplifying usage of ETags and Last-Modified and conditional GET requestsJeremy Kemper2008-08-071-36/+108
|
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* AbstractRequest.relative_url_root is no longer automatically configured by a ↵Joshua Peek2008-07-241-27/+14
| | | | HTTP header. It can now be set in your configuration environment with config.action_controller.relative_url_root
* Merge with docrails.Pratik Naik2008-07-161-3/+3
|
* Move accept header parsing shortcut to Mime::Type.parseJeremy Kemper2008-07-091-2/+0
|
* Request#accepts special-cases a single mime typeJeremy Kemper2008-07-091-4/+10
|
* Disable the Accept header by defaultMichael Koziarski2008-07-071-9/+25
| | | | | | | | The accept header is poorly implemented by browsers and causes strange errors when used on public sites where crawlers make requests too. You should use formatted urls (e.g. /people/1.xml) to support API clients. Alternatively to re-enable it you need to set: config.action_controller.use_accept_header = true A special case remains for ajax requests which will have a javascript format for the base resource (/people/1) if the X-Requested-With header is present. This lets ajax pages still use format.js despite there being no params[:format]
* Move template_format logic out to the request so it's alongside the ↵Michael Koziarski2008-07-031-0/+13
| | | | | | 'regular' request format. Use xhr? instead of the expensive trip through Request#accepts.
* Fixed Request#remote_ip to only raise hell if the HTTP_CLIENT_IP and ↵David Heinemeier Hansson2008-06-031-4/+5
| | | | HTTP_X_FORWARDED_FOR doesnt match (not just if theyre both present) [Mark Imbriaco, Bradford Folkens]
* Ruby 1.9 compat: ensure binary encoding for post body parsingJeremy Kemper2008-05-191-11/+17
|
* Improve documentation coverage and markupXavier Noria2008-05-021-9/+9
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Automatically parse posted JSON content for Mime::JSON requests. [rick]Rick Olson2008-04-081-4/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Avoid remote_ip spoofingJeremy Kemper2008-03-281-13/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9124 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that ActionController::Base#read_multipart would fail if boundary was ↵David Heinemeier Hansson2008-03-281-1/+0
| | | | | | exactly 10240 bytes (closes #10886) [ariejan] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix more obscure nested parameter hash parsing bug. Closes #10797 [thomas.lee]Rick Olson2008-03-131-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix nested parameter hash parsing bug. #10797 [thomas.lee]Rick Olson2008-03-111-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better error message for type conflicts when parsing params. Closes #7962 ↵Rick Olson2008-03-071-1/+1
| | | | | | [spicycode, matt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8986 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix bug with setting Request#format= after the getter has cached the value. ↵Rick Olson2008-02-071-1/+1
| | | | | | Closes #10889 [cch1] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Provide a nicer way to access headers. request.headers["Content-Type"] ↵Michael Koziarski2008-01-111-1/+3
| | | | | | instead of request.headers["HTTP_CONTENT_TYPE"] [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8625 5ecf4fe2-1ee6-0310-87b1-e25e094e27de