A simple web server that can be bound to either the EthernetInterface or the WiflyInterface.
Dependents: Smart-WiFly-WebServer WattEye X10Svr SSDP_Server
Revision 26:38102ef2b132, committed 2013-10-10
- Comitter:
- WiredHome
- Date:
- Thu Oct 10 18:46:55 2013 +0000
- Parent:
- 25:f7d6df7a700a
- Child:
- 27:90a1f5a5392f
- Commit message:
- Dead code elimination
Changed in this revision
SW_HTTPServer.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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