Sha256: b994d4dbde857bc578959b4e1a2aa6f8ff034e7f2e7ce079697911685f669225
Contents?: true
Size: 531 Bytes
Versions: 7
Compression:
Stored size: 531 Bytes
Contents
module Net # :nodoc: end class Net::HTTP # :nodoc: alias old_keep_alive? keep_alive? def keep_alive?(req, res) return false if /close/i =~ req['connection'].to_s return false if @seems_1_0_server return false if /close/i =~ res['connection'].to_s return true if /keep-alive/i =~ res['connection'].to_s return false if /close/i =~ res['proxy-connection'].to_s return true if /keep-alive/i =~ res['proxy-connection'].to_s (@curr_http_version == '1.1') end end if RUBY_VERSION < '1.9'
Version data entries
7 entries across 7 versions & 1 rubygems