File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,12 +118,12 @@ constexpr static WebRequestMethodComposite JsonHandlerMethods =
118118#if ARDUINOJSON_VERSION_MAJOR == 6
119119AsyncCallbackJsonWebHandler::AsyncCallbackJsonWebHandler (AsyncURIMatcher uri, ArJsonRequestHandlerFunction onRequest, size_t maxJsonBufferSize)
120120 : _uri(std::move(uri)),
121- _method(AsyncWebRequestMethod:: HTTP_GET | AsyncWebRequestMethod:: HTTP_POST | AsyncWebRequestMethod:: HTTP_PUT | AsyncWebRequestMethod:: HTTP_PATCH ),
121+ _method(JsonHandlerMethods ),
122122 _onRequest(onRequest), maxJsonBufferSize(maxJsonBufferSize), _maxContentLength(16384 ) {}
123123#else
124124AsyncCallbackJsonWebHandler::AsyncCallbackJsonWebHandler (AsyncURIMatcher uri, ArJsonRequestHandlerFunction onRequest)
125125 : _uri(std::move(uri)),
126- _method(AsyncWebRequestMethod:: HTTP_GET | AsyncWebRequestMethod:: HTTP_POST | AsyncWebRequestMethod:: HTTP_PUT | AsyncWebRequestMethod:: HTTP_PATCH ),
126+ _method(JsonHandlerMethods ),
127127 _onRequest(onRequest), _maxContentLength(16384 ) {}
128128#endif
129129
You can’t perform that action at this time.
0 commit comments