diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2017-10-24 15:57:36 -0400 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2017-10-24 15:57:36 -0400 | 
| commit | ead19aa22cb9cb297ca1c89e96daa85101c1158f (patch) | |
| tree | cf92d71832f8bfc2347e61b855f7ff3735f80476 | |
| parent | 762582c499dcac7564966bcc4222a973e8d4e4b9 (diff) | |
MAINT-7081: Only request HTTP2 with $VIEWERASSET override (testing)
| -rw-r--r-- | indra/llcorehttp/_httpoprequest.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/indra/llcorehttp/_httpoprequest.cpp b/indra/llcorehttp/_httpoprequest.cpp index 1ef7730c8e..cc49a2af80 100644 --- a/indra/llcorehttp/_httpoprequest.cpp +++ b/indra/llcorehttp/_httpoprequest.cpp @@ -736,6 +736,10 @@ HttpStatus HttpOpRequest::prepareRequest(HttpService * service)  		xfer_timeout *= 2L;  		// 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);  	}  	// *DEBUG:  Enable following override for timeout handling and "[curl:bugs] #1420" tests | 
