mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-03 03:08:44 +05:00
fix: `Content-Length` on esp32 for chunked response
This commit is contained in:
1 parent
2e3b38e14f
commit
4c32ccc450
1 file changed
+1
-2
@@ -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