Created
January 2, 2020 23:05
-
-
Save jifang/7dce660fe24d018a438debfcb7d13d93 to your computer and use it in GitHub Desktop.
Support HTTP/2 multiplexing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/curlpp/Multi.cpp b/src/curlpp/Multi.cpp | |
index 58b05aa..e3ecca2 100644 | |
--- a/src/curlpp/Multi.cpp | |
+++ b/src/curlpp/Multi.cpp | |
@@ -31,6 +31,7 @@ curlpp::Multi::Multi() | |
{ | |
mMultiHandle = curl_multi_init(); | |
runtimeAssert("Error when trying to curl_multi_init() a handle", mMultiHandle != NULL); | |
+ curl_multi_setopt(mMultiHandle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX); | |
} | |
curlpp::Multi::~Multi() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment