mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* exception message clean-up by Ian Macdonald <ian@caliban.org>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6a738f2265
commit
919f456de8
39 changed files with 127 additions and 124 deletions
|
@ -123,7 +123,7 @@ module Net
|
|||
# a Net::HTTP object raises IOError.
|
||||
def use_ssl=(flag)
|
||||
flag = (flag ? true : false)
|
||||
raise IOError, "use_ssl value changed but session already started" \
|
||||
raise IOError, "use_ssl value changed, but session already started" \
|
||||
if started? and @use_ssl != flag
|
||||
if flag and not @ssl_context
|
||||
@ssl_context = OpenSSL::SSL::SSLContext.new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue