mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 14:08:35 +08:00
curl: backport upstream fix to 7.62.0 regression
Backport upstream curl commit 2c5ec339ea (Curl_follow: accept non-supported schemes for "fake" redirects, 2018-11-01) to get a fix to curl issue 3210, a regression in 7.62.0.
This commit is contained in:
@@ -1514,7 +1514,8 @@ CURLcode Curl_follow(struct Curl_easy *data,
|
|||||||
disallowport = TRUE;
|
disallowport = TRUE;
|
||||||
|
|
||||||
DEBUGASSERT(data->state.uh);
|
DEBUGASSERT(data->state.uh);
|
||||||
uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, 0);
|
uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl,
|
||||||
|
(type == FOLLOW_FAKE) ? CURLU_NON_SUPPORT_SCHEME : 0);
|
||||||
if(uc)
|
if(uc)
|
||||||
return Curl_uc_to_curlcode(uc);
|
return Curl_uc_to_curlcode(uc);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user