Adaptation of the HttpServer by user yueee_yt. This version has improved handling of the HTTP headers (**NOTE**: There are limitations with this implementation and it is not fully functional. Use it only as a starting point.)

Dependents:   DMSupport DMSupport DMSupport DMSupport

Fork of DM_HttpServer by EmbeddedArtists AB

Files at this revision

API Documentation at this revision

Comitter:
embeddedartists
Date:
Mon Jan 26 10:10:46 2015 +0100
Parent:
8:5779cee2e94a
Child:
10:c1c8276af541
Commit message:
- Fixed compiler error in LPCXpresso IDE

Changed in this revision

HTTPRequestHandler.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HTTPRequestHandler.cpp	Mon Dec 08 12:49:53 2014 +0000
+++ b/HTTPRequestHandler.cpp	Mon Jan 26 10:10:46 2015 +0100
@@ -86,7 +86,7 @@
 
 int HTTPRequestHandler::dataLen() const
 {
-    map<string,string>::iterator it;
+    map<string,string>::const_iterator it;
     it = m_reqHeaders.find("Content-Length");
     if( it == m_reqHeaders.end() ) {
         return 0;