Skip to content

fetch2/wget: limit auth headers on checkstatus redirects

Anders Heimer bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fetch2/wget: limit auth on checkstatus redirectslib/bb/fetch2/wget.py+25 -20 replies
2/2tests/fetch: cover checkstatus redirect auth handlinglib/bb/tests/fetch.py+62 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fetch2/wget: limit auth headers on checkstatus redirects

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(-)