mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 19:18: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));
|
||||
#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