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:
- 98:b977424ec7f7
- Parent:
- 79:f50e02fb5c94
- Child:
- 108:66f17386ffd4
--- a/tcp/http/http.c Wed Jan 02 17:48:38 2019 +0000 +++ b/tcp/http/http.c Thu Jan 03 17:23:38 2019 +0000 @@ -6,6 +6,7 @@ #include "net.h" #include "log.h" #include "led.h" +#include "fault.h" bool HttpTrace = false; @@ -14,6 +15,9 @@ void HttpHandleRequest(int size, char* pRequestStream, uint32_t positionInRequestStream, int* pToDo) { + int lastFaultPoint = FaultPoint; + FaultPoint = FAULT_POINT_HttpHandleRequest; + if (HttpTrace) { LogF("HTTP <<< %d (%u)\r\n", size, positionInRequestStream); @@ -28,7 +32,7 @@ HttpReadRequest(pRequestStream, size, &pMethod, &pPath, &pQuery, &pLastModified); *pToDo = HttpRequestFunction(pPath, pLastModified, pQuery); } - + FaultPoint = lastFaultPoint; } void HttpSendReply(int* pSize, char* pReplyStream, uint32_t positionInReplyStream, uint16_t mss, int todo) {