Buffer size extended

Dependents:   Real-time_Bus_Arrival_Alarm

Fork of HTTPClient by Donatien Garnier

Files at this revision

API Documentation at this revision

Comitter:
hkjung
Date:
Wed Aug 26 05:09:36 2015 +0000
Parent:
18:277279a1891e
Commit message:
Buffer size extended

Changed in this revision

HTTPClient.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/HTTPClient.cpp	Wed May 07 16:48:10 2014 +0000
+++ b/HTTPClient.cpp	Wed Aug 26 05:09:36 2015 +0000
@@ -127,7 +127,7 @@
   char scheme[8];
   uint16_t port;
   char host[32];
-  char path[64];
+  char path[128];
   //First we need to parse the url (http[s]://host[:port][/[path]]) -- HTTPS not supported (yet?)
   HTTPResult res = parseURL(url, scheme, sizeof(scheme), host, sizeof(host), &port, path, sizeof(path));
   if(res != HTTP_OK)
@@ -396,7 +396,7 @@
         }
       }
     }
-    if ( n == 2 )
+    //if ( n == 2 )
     {
       DBG("Read header : %s: %s\n", key, value);
       if( !strcmp(key, "Content-Length") )
@@ -423,11 +423,11 @@
       trfLen -= (crlfPos + 2);
 
     }
-    else
-    {
-      ERR("Could not parse header");
-      PRTCL_ERR();
-    }
+    //else
+//    {
+//      ERR("Could not parse header");
+//      PRTCL_ERR();
+//    }
 
   }