summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 33febdd7aeb..ccabbff8e39 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