* 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:
aamine 2003-11-16 00:46:16 +00:00
parent 8eb537a88a
commit d4060e0467
2 changed files with 6 additions and 0 deletions

View file

@ -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