mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-05 06:28:44 +05:00
refactor: JsonDocument clear before send response
This commit is contained in:
1 parent
a6098555dc
commit
30ae602ab9
1 file changed
+3
@@ -245,6 +245,9 @@ protected:
|
|||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
doc.clear();
|
||||||
|
doc.shrinkToFit();
|
||||||
|
|
||||||
this->webServer->send(changed ? 201 : 200);
|
this->webServer->send(changed ? 201 : 200);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user