diff options
author | Rasik Pandey <rbpandey@gmail.com> | 2008-08-30 04:19:18 +0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-29 18:45:39 -0700 |
commit | 16b9a554db7e1bf3f5f224cdc5b4d27480e053ff (patch) | |
tree | 7eef718fa623a5fcebb90de534b0eba2a6eae020 /activeresource/lib/active_resource/http_mock.rb | |
parent | 11eb29f60ab79caf22f7ca715500e32d9a1b03a2 (diff) | |
download | rails-16b9a554db7e1bf3f5f224cdc5b4d27480e053ff.tar.gz rails-16b9a554db7e1bf3f5f224cdc5b4d27480e053ff.tar.bz2 rails-16b9a554db7e1bf3f5f224cdc5b4d27480e053ff.zip |
Format related patches to support serializing data out in the correct format with correct http request headers per http method type [#450 state:resolved]
Signed-off-by: Tarmo Tänav <tarmo@itech.ee>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activeresource/lib/active_resource/http_mock.rb')
-rw-r--r-- | activeresource/lib/active_resource/http_mock.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/http_mock.rb b/activeresource/lib/active_resource/http_mock.rb index 554fc3bcfc..9ed532b48c 100644 --- a/activeresource/lib/active_resource/http_mock.rb +++ b/activeresource/lib/active_resource/http_mock.rb @@ -146,7 +146,7 @@ module ActiveResource attr_accessor :path, :method, :body, :headers def initialize(method, path, body = nil, headers = {}) - @method, @path, @body, @headers = method, path, body, headers.reverse_merge('Content-Type' => 'application/xml') + @method, @path, @body, @headers = method, path, body, headers.merge(ActiveResource::Connection::HTTP_FORMAT_HEADER_NAMES[method] => 'application/xml') end def ==(other_request) |