Move request buff to stack

Save 384 heap bytes by handling the web request buffering in the loop()
stack context.
This commit is contained in:
Earle F. Philhower, III committed 2017-12-14 09:47:00 -08:00
1 parent ec4979e6f5
commit 143c4e65ae
3 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ void Base64Decode(char *str); // In-place B64 decode
void URLDecode(char *ptr); // In-place URL decode
// GET/POST parsing
bool WebReadRequest(WiFiClient *client, char **urlStr, char **paramStr);
bool WebReadRequest(WiFiClient *client, char *reqBuff, int reqBuffLen, char **urlStr, char **paramStr);
bool ParseParam(char **paramStr, char **name, char **value); // Get next name/parameter from a param string
bool IsIndexHTML(const char *url); // Is this meant to be index.html (/, index.htm, etc.)