mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-13 11:44:29 +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));
|
this->webServer->setContentLength(measureJson(content));
|
||||||
#else
|
#else
|
||||||
this->webServer->setContentLength(CONTENT_LENGTH_UNKNOWN);
|
this->webServer->setContentLength(measureJson(content));
|
||||||
this->webServer->sendHeader(F("Content-Length"), String(measureJson(content)));
|
|
||||||
this->webServer->send(code, contentType, emptyString);
|
this->webServer->send(code, contentType, emptyString);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user