aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib
diff options
context:
space:
mode:
authorEdgar J. Suarez <edgar.js@gmail.com>2008-09-17 15:24:26 -0500
committerMichael Koziarski <michael@koziarski.com>2008-09-18 11:15:48 +0200
commit790ebf8eab39da1b4d62146fe10f4a77f5daca8c (patch)
tree172cd40c0be6e68305bc59ce23c0d167f2fcb40f /activeresource/lib
parent7ecb9689b03335ec28958c506b083390f4212d45 (diff)
downloadrails-790ebf8eab39da1b4d62146fe10f4a77f5daca8c.tar.gz
rails-790ebf8eab39da1b4d62146fe10f4a77f5daca8c.tar.bz2
rails-790ebf8eab39da1b4d62146fe10f4a77f5daca8c.zip
HTTP Accept header
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activeresource/lib')
-rw-r--r--activeresource/lib/active_resource/connection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/connection.rb b/activeresource/lib/active_resource/connection.rb
index fe9c2d57fe..273fee3286 100644
--- a/activeresource/lib/active_resource/connection.rb
+++ b/activeresource/lib/active_resource/connection.rb
@@ -199,7 +199,7 @@ module ActiveResource
# Builds headers for request to remote service.
def build_request_headers(headers, http_method=nil)
- authorization_header.update(default_header).update(headers).update(http_format_header(http_method))
+ authorization_header.update(default_header).update(http_format_header(http_method)).update(headers)
end
# Sets authorization header