The lib with which to make LPC1768 a simple HTTP server. This have not yet implemented. fopen() DOESN'T WORK after EthernetInterface::connect() is called as using mbed-os 5.4~. See also https://os.mbed.com/questions/80658/HardFault-occurs-when-fopen-is-called-af/ or https://github.com/ARMmbed/mbed-os/issues/6578 and https://github.com/ARMmbed/mbed-os/issues/6624
Fork of HTTP_SERVER by
Diff: handlers/ResponseMessenger.cpp
- Revision:
- 3:59884bc0a238
- Parent:
- 2:33714d7c0f45
- Child:
- 6:4eb469f51570
--- a/handlers/ResponseMessenger.cpp Sat Nov 26 18:06:53 2016 +0000 +++ b/handlers/ResponseMessenger.cpp Sat Nov 26 18:22:42 2016 +0000 @@ -108,7 +108,7 @@ // Look for the head of the line to want to remove removedLineHead = strstr(header_field_buffer, arg_field_name); - if(removedLineHead = NULL) return -1; + if(removedLineHead == NULL) return -1; // Look for the first "\r\n" which is the end of the line removedLineEnd = strstr(removedLineHead, "\r\n"); removedLineEnd += 3; //pointing next line head or '\0' if the line of the last one.