Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to close connection via "connection": "close" header. #127

Open
olegrok opened this issue Jul 15, 2020 · 0 comments
Open

Unable to close connection via "connection": "close" header. #127

olegrok opened this issue Jul 15, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@olegrok
Copy link
Contributor

olegrok commented Jul 15, 2020

http/http/server/init.lua

Lines 245 to 251 in 8909e39

if p.headers.connection == nil then
hdrs.connection = 'keep-alive'
elseif string.lower(p.headers.connection) ~= 'keep-alive' then
hdrs.connection = 'close'
else
hdrs.connection = 'keep-alive'
end

Seems it should be headers.connection, but not p.headers.connection. If we return headers['connection'] = 'closes' it actually ignores.

@Totktonada Totktonada added bug Something isn't working teamE labels Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants