mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* lib/net/http.rb (set_debug_output): warn if method is called after #start. [ruby-dev:38798]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8eb537a88a
commit
d4060e0467
2 changed files with 6 additions and 0 deletions
|
@ -366,6 +366,7 @@ module Net # :nodoc:
|
|||
# http.start { .... }
|
||||
#
|
||||
def set_debug_output( output )
|
||||
warn 'Net::HTTP#set_debug_output called after HTTP started'
|
||||
@debug_output = output
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue