Skip to content
Snippets Groups Projects
Commit ead19aa2 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

MAINT-7081: Only request HTTP2 with $VIEWERASSET override (testing)

parent 762582c4
No related branches found
No related tags found
No related merge requests found
...@@ -736,6 +736,10 @@ HttpStatus HttpOpRequest::prepareRequest(HttpService * service) ...@@ -736,6 +736,10 @@ HttpStatus HttpOpRequest::prepareRequest(HttpService * service)
xfer_timeout *= 2L; xfer_timeout *= 2L;
// Also try requesting HTTP/2. // Also try requesting HTTP/2.
/******************************/
// but for test purposes, only if overriding VIEWERASSET
if (getenv("VIEWERASSET"))
/******************************/
check_curl_easy_setopt(mCurlHandle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); check_curl_easy_setopt(mCurlHandle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
} }
// *DEBUG: Enable following override for timeout handling and "[curl:bugs] #1420" tests // *DEBUG: Enable following override for timeout handling and "[curl:bugs] #1420" tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment