diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-14 09:36:30 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-14 09:36:30 +0000 |
commit | 68cdcf5ed34b317ae170a3a2b8d479c6e7fe0a5b (patch) | |
tree | dbdbe2acec78677087819e4e7ff331260a8a8b2f | |
parent | cada2c71d385203c34b07b51ff5e7f2da7eea8dc (diff) | |
download | rails-68cdcf5ed34b317ae170a3a2b8d479c6e7fe0a5b.tar.gz rails-68cdcf5ed34b317ae170a3a2b8d479c6e7fe0a5b.tar.bz2 rails-68cdcf5ed34b317ae170a3a2b8d479c6e7fe0a5b.zip |
Update docs to X-POST_DATA_MARSHAL
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/CHANGELOG | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 94bbe0d534..0c24bf93e0 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,13 +1,13 @@ *SVN* -* Added support for POST data in form of YAML or XML, which is controller through the POST_DATA_MARSHAL header. Example request: +* Added support for POST data in form of YAML or XML, which is controller through the X-POST_DATA_MARSHAL header. Example request: - POST_DATA_MARSHAL: xml + X-POST_DATA_MARSHAL: xml <request><item><content>HelloWorld</content></item></request> ...is the same as: - POST_DATA_MARSHAL: yaml + X-POST_DATA_MARSHAL: yaml --- item: content: HelloWorld @@ -20,7 +20,7 @@ Example Curl call: - curl -H 'POST_DATA_MARSHAL: xml' -d '<request><item><content>KillMeMore</content></item></request>' http://www.example.com/service + curl -H 'X-POST_DATA_MARSHAL: 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) |