Skip to content

Commit a3921bf

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent c58912e commit a3921bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ESPAsyncWebServer.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ class WebRequestMethodComposite {
202202
: MAP_EXTERNAL_TERNARY(HTTP_PURGE)
203203
: MAP_EXTERNAL_TERNARY(HTTP_LINK)
204204
: MAP_EXTERNAL_TERNARY(HTTP_UNLINK)
205+
#if defined(HTTP_ANY)
205206
: (t == HTTP_ANY) ? static_cast<uint32_t>(WebRequestMethod::HTTP_INVALID) - 1 : static_cast<uint32_t>(WebRequestMethod::HTTP_INVALID);
207+
#else
208+
: static_cast<uint32_t>(WebRequestMethod::HTTP_INVALID);
209+
#endif
206210
}
207211
#undef MAP_EXTERNAL_TERNARY
208212

0 commit comments

Comments
 (0)