From 80721c171532b63b51d756faffd9c37a59d1cedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 6 Aug 2017 17:56:27 +0200 Subject: [PATCH] allow submitting empty get args - may solve some bugs with wifi config --- include/helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/helpers.h b/include/helpers.h index 39a756b..9655ed8 100644 --- a/include/helpers.h +++ b/include/helpers.h @@ -17,7 +17,7 @@ /** * Helper that retrieves an arg from `connData->getArgs` and stores it in `buff`. Returns 1 on success */ -#define GET_ARG(key) (httpdFindArg(connData->getArgs, key, buff, sizeof(buff)) > 0) +#define GET_ARG(key) (httpdFindArg(connData->getArgs, key, buff, sizeof(buff)) >= 0) #define STR_HELPER(x) #x #define STR(x) STR_HELPER(x)