aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/connection.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2011-10-11 21:01:11 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2011-10-11 21:01:11 -0700
commitb8bb5f44c8ba02786ed42d04f66641f236ef42c3 (patch)
tree391299616f1b40420f4bd444d16f53bc364af260 /activeresource/lib/active_resource/connection.rb
parent027ecd3afbabb678b5cd161a494641c21c90531d (diff)
downloadrails-b8bb5f44c8ba02786ed42d04f66641f236ef42c3.tar.gz
rails-b8bb5f44c8ba02786ed42d04f66641f236ef42c3.tar.bz2
rails-b8bb5f44c8ba02786ed42d04f66641f236ef42c3.zip
Treat 303 See Other as a redirect response, too
Diffstat (limited to 'activeresource/lib/active_resource/connection.rb')
-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 73410c2d82..94839c8c25 100644
--- a/activeresource/lib/active_resource/connection.rb
+++ b/activeresource/lib/active_resource/connection.rb
@@ -122,7 +122,7 @@ module ActiveResource
# Handles response and error codes from the remote service.
def handle_response(response)
case response.code.to_i
- when 301,302,307
+ when 301, 302, 303, 307
raise(Redirection.new(response))
when 200...400
response