-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Connection: close and Connection: keep-alive both present in the header #8205
Comments
Works as intended per #7414?
Plus, I don't see how multiple 'Connection's may sneak into the response headers string; server code only sends it once. But, we don't check for unique / duplicates / internal header fields, so it is possible for user to inject something unexpected (and the spec technically allows it)
Invalid? Call will respond with 'content-type: connection' and 'close' in the body
|
Basic Infos
Platform
Settings in IDE
Problem Description
Accordind to the comment in ESP8266WebServer.h - if the client sends the "Connection" header, the value given by the header is used. But in fact, both server.keepAlive(true); and server.sendHeader(F("Connection"), F("close")); server.send(200); is present in the header.
HTTP/1.1 200 OK
Content-Type:
Connection: close
Content-Length: 0
Connection: keep-alive
Keep-Alive: timeout=2000
UDP:
For some reason short version server.send(200, F("Connection"), F("close")); doesn't work (only keep-alive is present).
The text was updated successfully, but these errors were encountered: