aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-08 23:29:07 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-02-08 23:29:07 +0000
commite3ab724e00c6bfecdd7306b3a78044a5975cefa3 (patch)
tree08ddd6d6111765421db281ceca851db2f172a076
parent9952524a74a70697e9e040afc25e6bdee9e6e906 (diff)
downloadruby-e3ab724e00c6bfecdd7306b3a78044a5975cefa3.tar.gz
* lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises Net::ProtoFatalError (for backward compatibility).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/http.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 62b1af97ef..08184fa36c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Feb 9 08:34:45 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: 4xx raises Net::ProtoServerError, 5xx raises
+ Net::ProtoFatalError (for backward compatibility).
+
Sun Feb 9 07:07:26 2003 Minero Aoki <aamine@loveruby.net>
* lib/fileutils.rb: new method FileUtils.pwd (really).
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 82274b11dd..f5b70188db 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1257,11 +1257,11 @@ module Net
end
class HTTPClientError < HTTPResponse # 4xx
HAS_BODY = true
- EXCEPTION_TYPE = ProtoFatalError
+ EXCEPTION_TYPE = ProtoServerError # for backward compatibility
end
class HTTPServerError < HTTPResponse # 5xx
HAS_BODY = true
- EXCEPTION_TYPE = ProtoServerError
+ EXCEPTION_TYPE = ProtoFatalError # for backward compatibility
end
class HTTPContinue < HTTPInformation # 100