From 68cdcf5ed34b317ae170a3a2b8d479c6e7fe0a5b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 14 May 2005 09:36:30 +0000 Subject: Update docs to X-POST_DATA_MARSHAL git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1306 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 8 ++++---- 1 file 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 HelloWorld ...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 'KillMeMore' http://www.example.com/service + curl -H 'X-POST_DATA_MARSHAL: xml' -d 'KillMeMore' 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) -- cgit v1.2.3