Clear specific http response header before sending #8028
Unanswered
tinker-ben
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good day :)
would like to ask if there is a method to Clear specific http response header before sending a response back to client using ESP8266WebServer's server.send();
Reason i'm asking is because when I use:
server.sendHeader(F("Connection"),F("close"));
it is appending to existing keep-alive value of the header:
connection →close, keep-alive content-length →25 content-type →application/json keep-alive →timeout=7000, timeout=2000
Beta Was this translation helpful? Give feedback.
All reactions