http: clear credentials better on redirect

Verify with test 2506: netrc with redirect using proxy

Updated test 998 which was wrong.

Reported-by: Muhamad Arga Reksapati

Closes #21345
This commit is contained in:
Daniel Stenberg 2026-04-16 14:26:20 +02:00
parent 3e0e2cc1ab
commit b4024bf808
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 165 additions and 65 deletions

View file

@ -77,7 +77,6 @@ Proxy-Connection: Keep-Alive
GET http://somewhere.else.example/a/path/9980002 HTTP/1.1
Host: somewhere.else.example
Authorization: Basic %b64[alberto:einstein]b64%
User-Agent: curl/%VERSION
Accept: */*
Proxy-Connection: Keep-Alive