A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.
Dependents: Smart-WiFly-WebServer WattEye X10Svr SSDP_Server
Diff: SW_HTTPServer.cpp
- Revision:
- 26:38102ef2b132
- Parent:
- 25:f7d6df7a700a
- Child:
- 27:90a1f5a5392f
diff -r f7d6df7a700a -r 38102ef2b132 SW_HTTPServer.cpp --- a/SW_HTTPServer.cpp Thu Oct 10 18:42:27 2013 +0000 +++ b/SW_HTTPServer.cpp Thu Oct 10 18:46:55 2013 +0000 @@ -513,16 +513,13 @@ queryString = rewritePrependWebroot(queryString); SendFile(queryString, fType); } else { - //pc->printf("Unsupported file type %s\r\n", queryString); header(404, "Not Found", "Pragma: err - Unsupported type\r\n"); } } } else { - //pc->printf("Unsupported path %s\r\n", queryString); header(400, "Bad Request", "Pragma: err - Unsupported path\r\n"); } } else { - //pc->printf("Unsupported query type %s\r\n", queryType); header(400, "Bad Request", "Pragma: err - Unsupported query type\r\n"); } #ifdef DEBUG