mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:33:42 +03:00
parent
ad837e9df8
commit
72abf7c13a
49 changed files with 199 additions and 162 deletions
|
|
@ -791,11 +791,11 @@ CURLcode Curl_follow(struct Curl_easy *data,
|
|||
}
|
||||
|
||||
DEBUGASSERT(data->state.uh);
|
||||
uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl,
|
||||
(type == FOLLOW_FAKE) ? CURLU_NON_SUPPORT_SCHEME :
|
||||
((type == FOLLOW_REDIR) ? CURLU_URLENCODE : 0) |
|
||||
CURLU_ALLOW_SPACE |
|
||||
(data->set.path_as_is ? CURLU_PATH_AS_IS : 0));
|
||||
uc = curl_url_set(data->state.uh, CURLUPART_URL, newurl, (unsigned int)
|
||||
((type == FOLLOW_FAKE) ? CURLU_NON_SUPPORT_SCHEME :
|
||||
((type == FOLLOW_REDIR) ? CURLU_URLENCODE : 0) |
|
||||
CURLU_ALLOW_SPACE |
|
||||
(data->set.path_as_is ? CURLU_PATH_AS_IS : 0)));
|
||||
if(uc) {
|
||||
if(type != FOLLOW_FAKE) {
|
||||
failf(data, "The redirect target URL could not be parsed: %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue