use compact json for request body

This commit is contained in:
mat 2024-01-10 00:12:35 -03:00 committed by GitHub
parent d56c70fe52
commit def39fc3f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -532,7 +532,7 @@ AsyncWebRequest& AsyncWebRequest::bodyRaw(std::string_view const fields) {
AsyncWebRequest& AsyncWebRequest::body(matjson::Value const& fields) { AsyncWebRequest& AsyncWebRequest::body(matjson::Value const& fields) {
m_impl->m_isJsonRequest = true; m_impl->m_isJsonRequest = true;
return this->bodyRaw(fields.dump()); return this->bodyRaw(fields.dump(matjson::NO_INDENTATION));
} }
AsyncWebRequest& AsyncWebRequest::timeout(std::chrono::seconds seconds) { AsyncWebRequest& AsyncWebRequest::timeout(std::chrono::seconds seconds) {