Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of webserverBlinky by
Revision 115:b8ddff0e782f, committed 2017-08-06
- Comitter:
- nixnax
- Date:
- Sun Aug 06 10:42:20 2017 +0000
- Parent:
- 114:8a5d70bbc1b2
- Child:
- 116:1272e9f7ad70
- Commit message:
- Removed spaces in HTTP response
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Aug 06 10:29:41 2017 +0000 +++ b/main.cpp Sun Aug 06 10:42:20 2017 +0000 @@ -560,7 +560,7 @@ xFetch = strncmp(dataStart, "GET /x", 6); // found GET /x , respond to both HTTP/1.<anything> // for example, in linux, xFetch can be used as: echo GET /x | nc 172.10.10.2 if( (httpGetRoot==0) || (xFetch==0) ) { - n=n+sprintf(n+dataStart,"HTTP/1.1 200 OK \r\nServer: mbed-PPP-Blinky \r\n"); // 200 OK header + n=n+sprintf(n+dataStart,"HTTP/1.1 200 OK\r\nServer: mbed-PPP-Blinky\r\n"); // 200 OK header } else { n=n+sprintf(n+dataStart,"HTTP/1.1 404 Not Found\r\nServer: mbed-PPP-Blinky\r\n"); // 404 header }