summaryrefslogtreecommitdiffstats
path: root/lib/net/http.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-23 01:52:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-23 01:52:11 +0000
commit22b28803669b45fedc45c7fb3d1b57a36bf0f7a2 (patch)
treed3287cc6704f81a57ee897bd2667e2ab87d041ce /lib/net/http.rb
parent751ab6c6ed529c8624fe2a4123e5995cff96c61e (diff)
downloadruby-22b28803669b45fedc45c7fb3d1b57a36bf0f7a2.tar.gz
ruby-22b28803669b45fedc45c7fb3d1b57a36bf0f7a2.tar.xz
ruby-22b28803669b45fedc45c7fb3d1b57a36bf0f7a2.zip
* lib/net/http.rb (Net::HTTPResponse): duplicated error 501;
HTTPInternalServerError should be error 500. [ruby-core:08037] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 87f42bfb6..f6e8e9dce 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1962,7 +1962,7 @@ module Net #:nodoc:
'416' => HTTPRequestedRangeNotSatisfiable,
'417' => HTTPExpectationFailed,
- '501' => HTTPInternalServerError,
+ '500' => HTTPInternalServerError,
'501' => HTTPNotImplemented,
'502' => HTTPBadGateway,
'503' => HTTPServiceUnavailable,