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