aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/base.rb
diff options
context:
space:
mode:
authorJim Herzberg <jimmiesh@gmail.com>2011-10-11 17:46:24 -0700
committerJim Herzberg <jimmiesh@gmail.com>2011-10-11 17:46:24 -0700
commita78a75d67a8072bc7613edbed548d4b865daadf8 (patch)
treea1500200adbf85a4fc291a9261ec35a2c997ce9a /activeresource/lib/active_resource/base.rb
parentfa79408a559d250c59ab4dac34dc7e68e6b7533f (diff)
downloadrails-a78a75d67a8072bc7613edbed548d4b865daadf8.tar.gz
rails-a78a75d67a8072bc7613edbed548d4b865daadf8.tar.bz2
rails-a78a75d67a8072bc7613edbed548d4b865daadf8.zip
activeresource should treat HTTP status 307 as redirection, same as 301 and 302; added missing test cases for statii 301 and 302.
Diffstat (limited to 'activeresource/lib/active_resource/base.rb')
-rw-r--r--activeresource/lib/active_resource/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb
index 03c4cc5b9e..3fb8ce7790 100644
--- a/activeresource/lib/active_resource/base.rb
+++ b/activeresource/lib/active_resource/base.rb
@@ -170,8 +170,8 @@ module ActiveResource
# <tt>404</tt> is just one of the HTTP error response codes that Active Resource will handle with its own exception. The
# following HTTP response codes will also result in these exceptions:
#
- # * 200..399 - Valid response, no exception (other than 301, 302)
- # * 301, 302 - ActiveResource::Redirection
+ # * 200..399 - Valid response, no exception (other than 301, 302 and 307)
+ # * 301, 302, 307 - ActiveResource::Redirection
# * 400 - ActiveResource::BadRequest
# * 401 - ActiveResource::UnauthorizedAccess
# * 403 - ActiveResource::ForbiddenAccess