From dd01cf986908b70ce9c2a0e7758d442364ba33ea Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 23 Jun 2006 01:52:11 +0000 Subject: [PATCH] * 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/trunk@10368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/net/http.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8991e0833a..9f34cd99bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 22 11:52:02 2006 Yukihiro Matsumoto + + * lib/net/http.rb (Net::HTTPResponse): duplicated error 501; + HTTPInternalServerError should be error 500. [ruby-core:08037] + Thu Jun 22 11:47:52 2006 Yukihiro Matsumoto * variable.c (rb_mod_name): returns nil for anonymous modules. diff --git a/lib/net/http.rb b/lib/net/http.rb index 87f42bfb66..f6e8e9dce3 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,