diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-22 02:54:39 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-22 02:54:39 +0000 |
commit | 2c44e16b13b68efd66fe895dbca840dbb786d2c1 (patch) | |
tree | 8b0e71eb31fc949a6fcde44d6fcfdbfc207c5f00 | |
parent | 94039f0188b451db609d72a78b62eb4577f0ce46 (diff) |
* lib/net/http.rb (Net::HTTPResponse): duplicated error 501;
HTTPInternalServerError should be error 500. [ruby-core:08037]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/net/http.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Jun 22 11:52:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/net/http.rb (Net::HTTPResponse): duplicated error 501; + HTTPInternalServerError should be error 500. [ruby-core:08037] + Thu Jun 22 05:15:58 2006 Tanaka Akira <akr@m17n.org> * ext/socket/socket.c (sock_s_socketpair): try GC only once. diff --git a/lib/net/http.rb b/lib/net/http.rb index 3f05d81073..43ef6e1ad3 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, |