[PATCH 0/2] fetch2/wget: limit auth headers on checkstatus redirects
Anders Heimer <[email protected]> Wed, 10 Jun 2026 09:40:11 +0200
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <[email protected]> |
FixedHTTPRedirectHandler currently copies request headers when following redirects. The first patch drops Authorization and Cookie when the redirect target has a different origin. The second patch adds local HTTP server tests covering both same-origin and different-origin redirects. Anders Heimer (2): fetch2/wget: limit auth on checkstatus redirects tests/fetch: cover checkstatus redirect auth handling lib/bb/fetch2/wget.py | 27 +++++++++++++++++-- lib/bb/tests/fetch.py | 62 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 2 deletions(-)