Skip to content

Commit 664db59

Browse files
authored
Merge branch 'main' into feat/http-query-rfc-10008
2 parents dc0340b + a52ca62 commit 664db59

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/ISSUE_TEMPLATE/issue-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: >
8-
### ⚠️ Please remember: issues are for *bugs* only!
8+
### ⚠️ Please remember: issues are for *bugs* or *feature requests* only!
99
1010
- type: markdown
1111
attributes:

src/AsyncJson.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,10 @@ constexpr static WebRequestMethodComposite JsonHandlerMethods =
117117

118118
#if ARDUINOJSON_VERSION_MAJOR == 6
119119
AsyncCallbackJsonWebHandler::AsyncCallbackJsonWebHandler(AsyncURIMatcher uri, ArJsonRequestHandlerFunction onRequest, size_t maxJsonBufferSize)
120-
: _uri(std::move(uri)),
121-
_method(AsyncWebRequestMethod::HTTP_GET | AsyncWebRequestMethod::HTTP_POST | AsyncWebRequestMethod::HTTP_PUT | AsyncWebRequestMethod::HTTP_PATCH),
122-
_onRequest(onRequest), maxJsonBufferSize(maxJsonBufferSize), _maxContentLength(16384) {}
120+
: _uri(std::move(uri)), _method(JsonHandlerMethods), _onRequest(onRequest), maxJsonBufferSize(maxJsonBufferSize), _maxContentLength(16384) {}
123121
#else
124122
AsyncCallbackJsonWebHandler::AsyncCallbackJsonWebHandler(AsyncURIMatcher uri, ArJsonRequestHandlerFunction onRequest)
125-
: _uri(std::move(uri)),
126-
_method(AsyncWebRequestMethod::HTTP_GET | AsyncWebRequestMethod::HTTP_POST | AsyncWebRequestMethod::HTTP_PUT | AsyncWebRequestMethod::HTTP_PATCH),
127-
_onRequest(onRequest), _maxContentLength(16384) {}
123+
: _uri(std::move(uri)), _method(JsonHandlerMethods), _onRequest(onRequest), _maxContentLength(16384) {}
128124
#endif
129125

130126
bool AsyncCallbackJsonWebHandler::canHandle(AsyncWebServerRequest *request) const {

0 commit comments

Comments
 (0)