Skip to content

Commit b58e2ec

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 1cfbd9a commit b58e2ec

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/AsyncJson.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,14 @@ size_t AsyncMessagePackResponse::_fillBuffer(uint8_t *data, size_t len) {
115115

116116
#if ARDUINOJSON_VERSION_MAJOR == 6
117117
AsyncCallbackJsonWebHandler::AsyncCallbackJsonWebHandler(AsyncURIMatcher uri, ArJsonRequestHandlerFunction onRequest, size_t maxJsonBufferSize)
118-
: _uri(std::move(uri)), _method(AsyncWebRequestMethod::HTTP_GET | AsyncWebRequestMethod::HTTP_POST | AsyncWebRequestMethod::HTTP_PUT | AsyncWebRequestMethod::HTTP_PATCH), _onRequest(onRequest), maxJsonBufferSize(maxJsonBufferSize), _maxContentLength(16384) {}
118+
: _uri(std::move(uri)),
119+
_method(AsyncWebRequestMethod::HTTP_GET | AsyncWebRequestMethod::HTTP_POST | AsyncWebRequestMethod::HTTP_PUT | AsyncWebRequestMethod::HTTP_PATCH),
120+
_onRequest(onRequest), maxJsonBufferSize(maxJsonBufferSize), _maxContentLength(16384) {}
119121
#else
120122
AsyncCallbackJsonWebHandler::AsyncCallbackJsonWebHandler(AsyncURIMatcher uri, ArJsonRequestHandlerFunction onRequest)
121-
: _uri(std::move(uri)), _method(AsyncWebRequestMethod::HTTP_GET | AsyncWebRequestMethod::HTTP_POST | AsyncWebRequestMethod::HTTP_PUT | AsyncWebRequestMethod::HTTP_PATCH), _onRequest(onRequest), _maxContentLength(16384) {}
123+
: _uri(std::move(uri)),
124+
_method(AsyncWebRequestMethod::HTTP_GET | AsyncWebRequestMethod::HTTP_POST | AsyncWebRequestMethod::HTTP_PUT | AsyncWebRequestMethod::HTTP_PATCH),
125+
_onRequest(onRequest), _maxContentLength(16384) {}
122126
#endif
123127

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

0 commit comments

Comments
 (0)