Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Files at this revision

API Documentation at this revision

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
     }