We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
true
false
1 parent 0b176f2 commit ff94412Copy full SHA for ff94412
lib/protocol/http1/connection.rb
@@ -320,7 +320,11 @@ def read_request
320
321
headers = read_headers
322
323
- @persistent = persistent?(version, method, headers)
+ # If we are not persistent, we can't become persistent even if the request might allow it:
324
+ if @persistent
325
+ # In other words, `@persistent` can only transition from true to false.
326
+ @persistent = persistent?(version, method, headers)
327
+ end
328
329
body = read_request_body(method, headers)
330
0 commit comments