mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
fix: `Content-Length` on esp32 for chunked response
This commit is contained in:
@@ -20,8 +20,7 @@ public:
|
||||
|
||||
this->webServer->setContentLength(measureJson(content));
|
||||
#else
|
||||
this->webServer->setContentLength(CONTENT_LENGTH_UNKNOWN);
|
||||
this->webServer->sendHeader(F("Content-Length"), String(measureJson(content)));
|
||||
this->webServer->setContentLength(measureJson(content));
|
||||
this->webServer->send(code, contentType, emptyString);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user