Skip to content

Commit ffa9e3c

Browse files
authored
Remove useless call to setContentLength() (#6715)
* Update ESP8266WebServer-impl.h Remove useless call to setContentLength() * Fix warning unused param
1 parent 2abcd16 commit ffa9e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer-impl.h

Lines changed: 1 addition & 1 deletion
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-
setContentLength(fileSize);
536+
(void)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)