url: fix CURLU and location following

Prior to this change if the user set a URL handle (CURLOPT_CURLU) it was
incorrectly used for the location follow, resulting in infinite requests
to the original location.

Reported-by: sspiri@users.noreply.github.com

Fixes https://github.com/curl/curl/issues/5709
Closes https://github.com/curl/curl/pull/5713
This commit is contained in:
Jay Satiro 2020-07-23 03:16:14 -04:00
parent d8b8afe320
commit a12a16151a
5 changed files with 133 additions and 4 deletions

View file

@ -189,7 +189,7 @@ test1540 test1541 \
\
test1550 test1551 test1552 test1553 test1554 test1555 test1556 test1557 \
test1558 test1559 test1560 test1561 test1562 test1563 test1564 test1565 \
test1566 \
test1566 test1567 \
\
test1590 test1591 test1592 test1593 test1594 test1595 test1596 \
\