forked from me-no-dev/ESPAsyncWebServer
return json object by default
This commit is contained in:
@@ -55,7 +55,7 @@ class AsyncJsonResponse: public AsyncAbstractResponse {
|
|||||||
JsonVariant _root;
|
JsonVariant _root;
|
||||||
bool _isValid;
|
bool _isValid;
|
||||||
public:
|
public:
|
||||||
AsyncJsonResponse(bool isArray): _isValid{false} {
|
AsyncJsonResponse(bool isArray=false): _isValid{false} {
|
||||||
_code = 200;
|
_code = 200;
|
||||||
_contentType = "text/json";
|
_contentType = "text/json";
|
||||||
if(isArray)
|
if(isArray)
|
||||||
|
Reference in New Issue
Block a user