lib/async/http/protocol/http11.rb in async-http-0.20.0 vs lib/async/http/protocol/http11.rb in async-http-0.20.1
- old
+ new
@@ -54,11 +54,10 @@
class << self
alias server new
alias client new
end
- KEEP_ALIVE = 'keep-alive'.freeze
CLOSE = 'close'.freeze
VERSION = "HTTP/1.1".freeze
def version
@@ -123,10 +122,10 @@
def read_response
version, status, reason = read_line.split(/\s+/, 3)
headers = read_headers
body = read_body(headers)
- @keep_alive = persistent?(headers)
+ @persistent = persistent?(headers)
return version, Integer(status), reason, headers, body
end
def read_request