Use Net::HTTPClientException instead of Net::HTTPServerException
Net::HTTPClientException
Net::HTTPServerException
Net::HTTPServerException has been deprecated since r63590. [Bug #14688] And net/http/responses.rb uses the deprecated constant, so Ruby warns of the deprecation.
net/http/responses.rb
Example:
$ ruby -r net/http -e '' /home/pocke/.rbenv/versions/trunk/lib/ruby/2.6.0/net/http/responses.rb:22: warning: constant Net::HTTPServerException is deprecated
This change suppresses the warning. From: Masataka Pocke Kuwabara kuwabara@pocke.me
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Use
Net::HTTPClientException
instead ofNet::HTTPServerException
Net::HTTPServerException
has been deprecated since r63590. [Bug #14688]And
net/http/responses.rb
uses the deprecated constant, so Ruby warns of the deprecation.Example:
This change suppresses the warning.
From: Masataka Pocke Kuwabara kuwabara@pocke.me
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e