]> granicus.if.org Git - curl/commitdiff
http2 examples: clean up some comments
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 May 2015 14:04:00 +0000 (16:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 May 2015 14:04:00 +0000 (16:04 +0200)
docs/examples/http2-download.c
docs/examples/http2-upload.c

index db5ed7a1370011406318b3ea20fae2cd21c1d98b..a4099a8c12b120384520b9a42a4695f838c92e66 100644 (file)
@@ -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 */
index 17197073e52bfa8d85600ee21b9ec0b272a9a214..6b91333fb0930ed9d52a7a97a0c67e2e85fd9689 100644 (file)
@@ -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 */