allow submitting empty get args - may solve some bugs with wifi config

This commit is contained in:
2017-08-06 17:56:27 +02:00
parent e22d3f26d9
commit 80721c1715
+1 -1
View File
@@ -17,7 +17,7 @@
/** /**
* Helper that retrieves an arg from `connData->getArgs` and stores it in `buff`. Returns 1 on success * 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_HELPER(x) #x
#define STR(x) STR_HELPER(x) #define STR(x) STR_HELPER(x)