diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-06-07 23:28:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-06-08 10:30:36 +0200 |
commit | 07058f6ad8e1d301291463c476615bc8a6733a11 (patch) | |
tree | da734e50637880740375a346ae2a181d156239b6 /lib/transfer.c | |
parent | 5394cbf570cda0510d6f10bd875e9aba9f898ce4 (diff) | |
download | curl-07058f6ad8e1d301291463c476615bc8a6733a11.tar.gz |
transfer: maintain --path-as-is after redirects
Reported-by: Marcus T
Fixes #8974
Closes #8975
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 5367c0384..4f1b4b535 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -1607,7 +1607,8 @@ CURLcode Curl_follow(struct Curl_easy *data, 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); + CURLU_ALLOW_SPACE | + (data->set.path_as_is ? CURLU_PATH_AS_IS : 0)); if(uc) { if(type != FOLLOW_FAKE) return Curl_uc_to_curlcode(uc); |