A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
Diff: tcp/http/http.c
- Revision:
- 75:603b10404183
- Parent:
- 73:43e3d7fb3d60
- Child:
- 79:f50e02fb5c94
--- a/tcp/http/http.c Mon Oct 29 09:33:44 2018 +0000 +++ b/tcp/http/http.c Tue Oct 30 22:11:22 2018 +0000 @@ -5,6 +5,7 @@ #include "action.h" #include "net.h" #include "log.h" +#include "led.h" bool HttpTrace = false; @@ -18,7 +19,7 @@ LogF("HTTP <<< %d (%d)\r\n", size, positionInRequestStream); } //Handle request for the first packet of data received but leave todo the same after that. - if (size) + if (size && positionInRequestStream == 0) { char* pMethod; char* pPath;