refactor: JsonDocument clear before send response

This commit is contained in:
Yurii
2024-01-14 16:34:49 +03:00
parent a6098555dc
commit 30ae602ab9

View File

@@ -245,6 +245,9 @@ protected:
changed = true;
}
doc.clear();
doc.shrinkToFit();
this->webServer->send(changed ? 201 : 200);
});