cstamas commented on PR #2374:
URL: https://github.com/apache/maven-resolver/pull/2374#issuecomment-7257156873

   Regarding the observation about the asymmetry between the redirect branch 
and the 401 retry in `UrlTransporter.perform()`: it was not harmless. The 401 
retry is not the only way credentials are sent. Preemptive or cached 
credentials were also written whenever origin scoping was off, and a redirect 
dropped them only when the authority string changed, so an `https://host` to 
`http://host` redirect kept them.
   
   Fixed in e299a36d by removing the asymmetry instead of documenting it: 
`Authorization` is now only sent to the repository origin, and a redirect 
leaving the origin drops the credentials, regardless of 
`HTTP_ORIGIN_SCOPED_HEADERS`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to