Closed zarqman closed 9 months ago
If the Connection header has both close and keep-alive, both related methods return true despite the conflicting instructions.
Connection
close
keep-alive
This PR changes keep_alive? to return false if close is simultaneously present.
keep_alive?
Related to socketry/async-http#132
What an interesting behaviour. Apparently Chrome and Firefox interpret this differently. https://stackoverflow.com/questions/11443669/how-to-interpret-connection-keep-alive-close
If the
Connection
header has bothclose
andkeep-alive
, both related methods return true despite the conflicting instructions.This PR changes
keep_alive?
to return false ifclose
is simultaneously present.Related to socketry/async-http#132
Types of Changes
Contribution