Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ libraries/Insights/examples/*/*.ino.zip
/affected_examples.txt
/ctags_*
.github/copilot-instructions.md
/.idea/
Comment thread
lucasssvaz marked this conversation as resolved.
Outdated
5 changes: 5 additions & 0 deletions libraries/WebServer/src/WebServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,10 @@ void WebServer::setContentLength(const size_t contentLength) {
_contentLength = contentLength;
}

void WebServer::resetContentLength() {
_contentLength = CONTENT_LENGTH_NOT_SET;
}

Comment thread
lucasssvaz marked this conversation as resolved.
Outdated
void WebServer::enableDelay(boolean value) {
_nullDelay = value;
}
Expand Down Expand Up @@ -772,6 +776,7 @@ void WebServer::_streamFileCore(const size_t fileSize, const String &fileName, c
sendHeader(F("Content-Encoding"), F("gzip"));
}
send(code, contentType, "");
resetContentLength();
}

String WebServer::pathArg(unsigned int i) const {
Expand Down