aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-05-20 18:32:04 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-05-20 18:32:04 +0000
commit24b13acd428d50c077d913d6f308842377eddf62 (patch)
tree2c64084ca6673399cf50678d02e03a98fa53c3ce /actionpack/CHANGELOG
parent8cc64e77cf0e7b25fbcb9f19c2c640410a62cb89 (diff)
downloadrails-24b13acd428d50c077d913d6f308842377eddf62.tar.gz
rails-24b13acd428d50c077d913d6f308842377eddf62.tar.bz2
rails-24b13acd428d50c077d913d6f308842377eddf62.zip
Made the post_format work with content-type
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index dc6395aefd..924017f0d0 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -18,14 +18,14 @@
* Added accessors to logger, params, response, session, flash, and headers from the view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller
-* Added support for POST data in form of YAML or XML, which is controller through the X-POST_DATA_MARSHAL header. Example request:
+* Added support for POST data in form of YAML or XML, which is controller through the Content-Type header. Example request:
- X-POST_DATA_MARSHAL: xml
+ Content-Type: application/xml
<request><item><content>HelloWorld</content></item></request>
...is the same as:
- X-POST_DATA_MARSHAL: yaml
+ Content-Type: application/x-yaml
---
item:
content: HelloWorld
@@ -38,10 +38,10 @@
Example Curl call:
- curl -H 'X-POST_DATA_MARSHAL: xml' -d '<request><item><content>KillMeMore</content></item></request>' http://www.example.com/service
+ curl -H 'Content-Type: application/xml' -d '<request><item><content>KillMeMore</content></item></request>' http://www.example.com/service
You can query to find out whether a given request came through as one of these types with:
- - request.post_format? (:query_string, :xml or :yaml)
+ - request.post_format? (:url_encoded, :xml or :yaml)
- request.formatted_post? (for either xml or yaml)
- request.xml_post?
- request.yaml_post?