mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
9952524a74
commit
e3ab724e00
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
Sun Feb 9 07:07:26 2003 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* lib/fileutils.rb: new method FileUtils.pwd (really).
|
* lib/fileutils.rb: new method FileUtils.pwd (really).
|
||||||
|
|
|
@ -1257,11 +1257,11 @@ module Net
|
||||||
end
|
end
|
||||||
class HTTPClientError < HTTPResponse # 4xx
|
class HTTPClientError < HTTPResponse # 4xx
|
||||||
HAS_BODY = true
|
HAS_BODY = true
|
||||||
EXCEPTION_TYPE = ProtoFatalError
|
EXCEPTION_TYPE = ProtoServerError # for backward compatibility
|
||||||
end
|
end
|
||||||
class HTTPServerError < HTTPResponse # 5xx
|
class HTTPServerError < HTTPResponse # 5xx
|
||||||
HAS_BODY = true
|
HAS_BODY = true
|
||||||
EXCEPTION_TYPE = ProtoServerError
|
EXCEPTION_TYPE = ProtoFatalError # for backward compatibility
|
||||||
end
|
end
|
||||||
|
|
||||||
class HTTPContinue < HTTPInformation # 100
|
class HTTPContinue < HTTPInformation # 100
|
||||||
|
|
Loading…
Reference in a new issue