summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 8410497437..2b18a8e930 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -425,6 +425,7 @@ module Net
req['connection'] = 'close'
elsif @socket.closed? then
@socket.reopen
+ on_connect
end
if @seems_1_0_server then
req['connection'] = 'close'