[PATCH] url: use same credentials on redirect
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 Oct 2024 21:54:39 +0000 (23:54 +0200)
committerSamuel Henrique <samueloph@debian.org>
Sat, 19 Jul 2025 19:04:59 +0000 (21:04 +0200)
commita662bb2e054446a7c087250673112923a0bfe4f5
treeaaff333db62eef823784d5739f6cda347653299f
parent463d24f104abcc5f88e024eec7547d07372b32f2
[PATCH] url: use same credentials on redirect

Previously it could lose the username and only use the password.

Added test 998 and 999 to verify.

Reported-by: Tobias Bora
Fixes #15262
Closes #15282
Backported by: Matheus Polkorny <mpolkorny@gmail.com>.

Changes:

- Refresh patch context

- Small change in the Makefile to add a new test

Gbp-Pq: Name url-use-same-credentials-on-redirect.patch
lib/transfer.c
lib/url.c
lib/urldata.h
tests/data/Makefile.inc
tests/data/test998 [new file with mode: 0644]
tests/data/test999 [new file with mode: 0644]