summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-28 16:04:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-28 16:04:00 +0200
commitd1b1d782f5430d9cddd0aa8e34ad8994de53b362 (patch)
tree6255278778ce26e1de30a2c483cbe2e250432fda
parente57f08863abdf8f4d8fd08e4f75fe4703b4166bc (diff)
downloadcurl-d1b1d782f5430d9cddd0aa8e34ad8994de53b362.tar.gz
http2 examples: clean up some comments
-rw-r--r--docs/examples/http2-download.c4
-rw-r--r--docs/examples/http2-upload.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c
index db5ed7a13..a4099a8c1 100644
--- a/docs/examples/http2-download.c
+++ b/docs/examples/http2-download.c
@@ -151,7 +151,7 @@ static void setup(CURL *hnd, int num)
/* write to this file */
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, out);
- /* get the same URL for now */
+ /* set the same URL */
curl_easy_setopt(hnd, CURLOPT_URL, "https://localhost:8443/index.html");
/* send it verbose for max debuggaility */
@@ -202,8 +202,6 @@ int main(int argc, char **argv)
curl_multi_add_handle(multi_handle, easy[i]);
}
- /* For now (at least) we use bit 1 in the pipelining option to switch on
- HTTP/2 multiplexing */
curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
/* we start some action by calling perform right away */
diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c
index 17197073e..6b91333fb 100644
--- a/docs/examples/http2-upload.c
+++ b/docs/examples/http2-upload.c
@@ -258,8 +258,6 @@ int main(int argc, char **argv)
curl_multi_add_handle(multi_handle, easy[i]);
}
- /* For now (at least) we use bit 1 in the pipelining option to switch on
- HTTP/2 multiplexing */
curl_multi_setopt(multi_handle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
/* We do HTTP/2 so let's stick to one connection per host */