Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1002)

Unified Diff: examples/wget/wget.cc

Issue 1157783002: Update to newer network service implementation and mojoms from monet (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/png_viewer/png_viewer.cc ('k') | mojo/public/tools/NETWORK_SERVICE_VERSION » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/wget/wget.cc
diff --git a/examples/wget/wget.cc b/examples/wget/wget.cc
index 0815522dcda1713bdf7415751101b0e29cedbd47..23be460bcf72ace85111f61fad3eda5023bf99ea 100644
--- a/examples/wget/wget.cc
+++ b/examples/wget/wget.cc
@@ -35,7 +35,9 @@ class ResponsePrinter {
printf(" %s\n", response->status_line.get().c_str());
if (response->headers) {
for (size_t i = 0; i < response->headers.size(); ++i)
- printf(" %s\n", response->headers[i].get().c_str());
+ printf(" %s=%s\n",
+ response->headers[i]->name.To<std::string>().c_str(),
+ response->headers[i]->value.To<std::string>().c_str());
}
}
« no previous file with comments | « examples/png_viewer/png_viewer.cc ('k') | mojo/public/tools/NETWORK_SERVICE_VERSION » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698