diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-16 00:46:16 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-16 00:46:16 +0000 |
commit | a76b84cfbb7391cc39175d0df5e6851d23e1a11d (patch) | |
tree | 257e8ed55ee2b5dedbe022f0eb565e1c17302679 /lib | |
parent | 9a6ef1f68acfda8ce42c8f147854ce25267f5aae (diff) | |
download | ruby-a76b84cfbb7391cc39175d0df5e6851d23e1a11d.tar.gz ruby-a76b84cfbb7391cc39175d0df5e6851d23e1a11d.tar.xz ruby-a76b84cfbb7391cc39175d0df5e6851d23e1a11d.zip |
* lib/net/http.rb (set_debug_output): warn if method is called after #start. [ruby-dev:38798]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 684e55f8d..33febdd7a 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -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 |