summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 33febdd7ae..ccabbff8e3 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -366,7 +366,7 @@ module Net # :nodoc:
# http.start { .... }
#
def set_debug_output( output )
- warn 'Net::HTTP#set_debug_output called after HTTP started'
+ warn 'Net::HTTP#set_debug_output called after HTTP started' if started?
@debug_output = output
end