a

Dependencies:   mbed-http

Fork of http-example by sandbox

Revision:
7:5d32909f77de
Parent:
5:42f713b19337
Child:
14:3c173847e681
diff -r 4a3ed1515bed -r 5d32909f77de source/main-http.cpp
--- a/source/main-http.cpp	Thu Feb 23 14:13:01 2017 +0100
+++ b/source/main-http.cpp	Fri Feb 24 11:21:24 2017 +0100
@@ -13,7 +13,7 @@
 
     printf("Headers:\n");
     for (size_t ix = 0; ix < res->get_headers_length(); ix++) {
-        printf("\t%s: %s\n", res->get_headers_fields()[ix].c_str(), res->get_headers_values()[ix].c_str());
+        printf("\t%s: %s\n", res->get_headers_fields()[ix]->c_str(), res->get_headers_values()[ix]->c_str());
     }
     printf("\nBody (%d bytes):\n\n%s\n", res->get_body_length(), res->get_body_as_string().c_str());
 }