From d4e210d712c76502384649cf06ad439baad35be8 Mon Sep 17 00:00:00 2001 From: EyJunge1 <149941075+EyJunge1@users.noreply.github.com> Date: Wed, 7 Oct 2026 07:25:00 +0200 Subject: [PATCH] Map platform HTTP_QUERY when HTTP_PARSER_HAS_QUERY is defined Enable WebRequestMethodComposite(http_method::HTTP_QUERY) only when the platform parser advertises QUERY support, so platforms without the enum stay buildable. --- src/ESPAsyncWebServer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ESPAsyncWebServer.h b/src/ESPAsyncWebServer.h index 6a17a049..8cbd0f49 100644 --- a/src/ESPAsyncWebServer.h +++ b/src/ESPAsyncWebServer.h @@ -230,6 +230,9 @@ class WebRequestMethodComposite { : MAP_EXTERNAL_TERNARY(HTTP_PURGE) : MAP_EXTERNAL_TERNARY(HTTP_LINK) : MAP_EXTERNAL_TERNARY(HTTP_UNLINK) +#if defined(HTTP_PARSER_HAS_QUERY) + : MAP_EXTERNAL_TERNARY(HTTP_QUERY) +#endif #if defined(HTTP_ANY) : (t == HTTP_ANY) ? static_cast(WebRequestMethod::HTTP_INVALID) - 1 #endif