@@ -1314,46 +1314,46 @@ const char *AsyncWebServerRequest::methodToString() const {
13141314 if (_method == HTTP_ANY ) {
13151315 return T_ANY ;
13161316 }
1317- if (_method & HTTP_GET ) {
1317+ if (isMethod ( HTTP_GET ) ) {
13181318 return T_GET ;
13191319 }
1320- if (_method & HTTP_POST ) {
1320+ if (isMethod ( HTTP_POST ) ) {
13211321 return T_POST ;
13221322 }
1323- if (_method & HTTP_DELETE ) {
1323+ if (isMethod ( HTTP_DELETE ) ) {
13241324 return T_DELETE ;
13251325 }
1326- if (_method & HTTP_PUT ) {
1326+ if (isMethod ( HTTP_PUT ) ) {
13271327 return T_PUT ;
13281328 }
1329- if (_method & HTTP_PATCH ) {
1329+ if (isMethod ( HTTP_PATCH ) ) {
13301330 return T_PATCH ;
13311331 }
1332- if (_method & HTTP_HEAD ) {
1332+ if (isMethod ( HTTP_HEAD ) ) {
13331333 return T_HEAD ;
13341334 }
1335- if (_method & HTTP_OPTIONS ) {
1335+ if (isMethod ( HTTP_OPTIONS ) ) {
13361336 return T_OPTIONS ;
13371337 }
1338- if (_method & HTTP_PROPFIND ) {
1338+ if (isMethod ( HTTP_PROPFIND ) ) {
13391339 return T_PROPFIND ;
13401340 }
1341- if (_method & HTTP_LOCK ) {
1341+ if (isMethod ( HTTP_LOCK ) ) {
13421342 return T_LOCK ;
13431343 }
1344- if (_method & HTTP_UNLOCK ) {
1344+ if (isMethod ( HTTP_UNLOCK ) ) {
13451345 return T_UNLOCK ;
13461346 }
1347- if (_method & HTTP_PROPPATCH ) {
1347+ if (isMethod ( HTTP_PROPPATCH ) ) {
13481348 return T_PROPPATCH ;
13491349 }
1350- if (_method & HTTP_MKCOL ) {
1350+ if (isMethod ( HTTP_MKCOL ) ) {
13511351 return T_MKCOL ;
13521352 }
1353- if (_method & HTTP_MOVE ) {
1353+ if (isMethod ( HTTP_MOVE ) ) {
13541354 return T_MOVE ;
13551355 }
1356- if (_method & HTTP_COPY ) {
1356+ if (isMethod ( HTTP_COPY ) ) {
13571357 return T_COPY ;
13581358 }
13591359 return T_UNKNOWN ;
0 commit comments