lib/httpx/connection/http1.rb in httpx-0.9.0 vs lib/httpx/connection/http1.rb in httpx-0.10.0
- old
+ new
@@ -179,10 +179,10 @@
private
def manage_connection(response)
connection = response.headers["connection"]
case connection
- when /keep\-alive/i
+ when /keep-alive/i
keep_alive = response.headers["keep-alive"]
return unless keep_alive
parameters = Hash[keep_alive.split(/ *, */).map do |pair|
pair.split(/ *= */)