Skip to content

Commit 98785f7

Browse files
authored
Rollback setContentLength removal (#6715) (#6719)
Apparently I messed up testing #6715 and something broke. This rolls back that PR. That means #2132 remains closed with no action.
1 parent ffa9e3c commit 98785f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ template <typename ServerType>
533533
void ESP8266WebServerTemplate<ServerType>::_streamFileCore(const size_t fileSize, const String &fileName, const String &contentType)
534534
{
535535
using namespace mime;
536-
(void)fileSize;
536+
setContentLength(fileSize);
537537
if (fileName.endsWith(String(FPSTR(mimeTable[gz].endsWith))) &&
538538
contentType != String(FPSTR(mimeTable[gz].mimeType)) &&
539539
contentType != String(FPSTR(mimeTable[none].mimeType))) {

0 commit comments

Comments
 (0)