aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/cgi_process.rb
Commit message (Collapse)AuthorAgeFilesLines
* Added new infrastructure support for REST webservices.Tobias Lütke2006-03-051-2/+2
| | | | | | | | | | | | | | | | | By default application/xml posts are handled by creating a XmlNode object with the same name as the root element of the submitted xml. M$ ActionController::Base.param_parsers['application/atom+xml'] = Proc.new do |data| node = REXML::Document.new(post) { node.root.name => node.root } end XmlSimple and Yaml web services were retired, ActionController::Base.param_parsers carries an example which shows how to get this functio$ request.[formatted_post?, xml_post?, yaml_post? and post_format] were all deprecated in favor of request.content_type [Tobias Luetke] Closes #4081 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of that. PStore doesnt support suffix :(David Heinemeier Hansson2006-03-041-1/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of that. PStore doesnt support suffix :(David Heinemeier Hansson2006-03-041-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* CHANGED DEFAILT: File-based sessions now have a suffix of ".rails_session" ↵David Heinemeier Hansson2006-03-041-2/+2
| | | | | | instead of a prefix called "ruby_sess." [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Major components cleanup and speedup. Closes #3527.Jeremy Kemper2006-02-091-14/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for multiple proxy servers in HTTP_X_FORWARDED_HOST. Closes #3397Michael Koziarski2006-01-131-1/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3412 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Back out of 3109 for now as it seems to interfere with the flashDavid Heinemeier Hansson2005-11-211-6/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r3209@asus: jeremy | 2005-11-20 01:04:22 -0800Jeremy Kemper2005-11-201-2/+6
| | | | | | | If sessions are disabled, return a hash that raises an error when it's accessed. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fewer objects, no loop in convert_content_type. Closes #2883.Jeremy Kemper2005-11-161-5/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include all of session creation in stale_session_checkJeremy Kemper2005-11-091-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2958 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Delete existing sessions with the same session id before creating a new ↵Jeremy Kemper2005-11-091-27/+42
| | | | | | session. Prevents duplication and hijacking. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Request#host_with_port to use the standard port when Rails is behind a ↵Nicholas Seckar2005-10-151-1/+9
| | | | | | proxy. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed problem with send_file and WEBrick using stdout #1812David Heinemeier Hansson2005-09-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2274 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed access to "Host" header with requests made by crappy old HTTP/1.0 ↵David Heinemeier Hansson2005-09-141-1/+1
| | | | | | clients #2124 [Marcel Molina] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2242 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added easy assignment of fragment cache store through use of symbols for ↵David Heinemeier Hansson2005-09-131-5/+0
| | | | | | included stores (old way still works too) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance improvements to CGI methods. Closes #1980Nicholas Seckar2005-09-081-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance with 5-30% through a series of Action Pack ↵David Heinemeier Hansson2005-07-231-9/+9
| | | | | | optimizations #1811 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for per-action session management #1763Jamis Buck2005-07-221-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that a SessionRestoreError was thrown if a model object was placed in ↵David Heinemeier Hansson2005-07-061-23/+16
| | | | | | the session that wasn't available to all controllers. This means that it's no longer necessary to use the 'model :post' work-around in ApplicationController to have a Post model in your session. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1741 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Retract the session fix until 0.13.1 to preserve the truthfulness of the bookDavid Heinemeier Hansson2005-07-061-16/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that a SessionRestoreError was thrown if a model object was placed in ↵David Heinemeier Hansson2005-07-061-7/+17
| | | | | | the session that wasn't available to all controllers git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r2789@asus: jeremy | 2005-07-04 16:17:35 -0700Jeremy Kemper2005-07-041-3/+8
| | | | | | | require active_record_store only if ActiveRecord is already defined. define DEFAULT_SESSION_OPTIONS only if it is undefined. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Attempt to explicitly flush the output at the end of CgiProcess#outJamis Buck2005-06-271-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed the mutex from the WEBrick adapter under the production environment ↵David Heinemeier Hansson2005-06-221-5/+5
| | | | | | so concurrent requests can be served git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made the post_format work with content-typeDavid Heinemeier Hansson2005-05-201-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use X-POST_DATA_FORMAT instead of just POST_DATA_FORMATDavid Heinemeier Hansson2005-05-141-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for POST data in form of YAML or XML, which is controller ↵David Heinemeier Hansson2005-05-141-1/+5
| | | | | | through the POST_DATA_MARSHAL header git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for web servers that use PATH_INFO instead of REQUEST_URI like ↵David Heinemeier Hansson2005-04-181-1/+5
| | | | | | IIS #1014 [BradG/Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1211 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that broken pipe errors (clients disconnecting in mid-request) could ↵David Heinemeier Hansson2005-03-031-7/+12
| | | | | | bring down a fcgi process git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@829 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the original exception message to session recall errors (so you can ↵David Heinemeier Hansson2005-03-031-1/+1
| | | | | | see which class wasnt required) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@828 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A hopefully more successful attempt at the Routing branch mergeDavid Heinemeier Hansson2005-02-151-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of routing merge.. investigating missing patchesDavid Heinemeier Hansson2005-02-151-9/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merged back the Routing branchDavid Heinemeier Hansson2005-02-151-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added @request.raw_post as a convenience access to ↵David Heinemeier Hansson2005-01-251-1/+1
| | | | | | @request.env['RAW_POST_DATA'] and fixed the patch problems with the session #534 [Tobias Luetke] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deactivated RAW_POST_DATA pending fixDavid Heinemeier Hansson2005-01-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@469 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added @request.env['RAW_POST_DATA'] for people who need access to the data ↵David Heinemeier Hansson2005-01-201-0/+1
| | | | | | before Ruby's CGI has parsed it #505 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@463 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that MemCacheStore wasn't included by default and added default ↵David Heinemeier Hansson2005-01-111-0/+1
| | | | | | MemCache object pointing to localhost #447 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@384 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that host would choke when cgi.host returned nil #432 [Tobias Luetke]David Heinemeier Hansson2005-01-111-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@381 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved the cookies fix to cgi_extDavid Heinemeier Hansson2004-12-291-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@274 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed regression with Base#reset_session that wouldn't use the the ↵David Heinemeier Hansson2004-12-211-1/+1
| | | | | | DEFAULT_SESSION_OPTIONS [adam@the-kramers.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed CgiRequest so that it'll now accept session options with Symbols as ↵David Heinemeier Hansson2004-12-121-2/+6
| | | | | | keys (as the documentation points out) [Suggested by Andreas] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@117 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed a bug with the HEAD stuffDavid Heinemeier Hansson2004-12-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@61 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added indifference to whether @headers["Content-Type"], ↵David Heinemeier Hansson2004-12-071-4/+9
| | | | | | @headers["Content-type"], or @headers["content-type"] is used. Added proper handling of HEAD requests, so that content isnt returned (Request#head? added as well) #277 [Eric Hodel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@57 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* A change in attempt to combat periodical errors with FCGI processes hanging ↵David Heinemeier Hansson2004-11-301-0/+1
| | | | | | for a long time before returning the response git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@29 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* InitialDavid Heinemeier Hansson2004-11-241-0/+124
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de