Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

RedirectHandler maintains max_redirect state across requests #246

Closed
@vpotter

Description

@vpotter

When using RedirectHandler for multiple requests without specifying custom options, we encounter an issue where the max_redirect counter is shared across all requests handled by a single RedirectHandler instance. This is problematic when downloading drive items using the Microsoft Graph API, which respond with a 302 Found redirect to a preauthenticated download URL.

After 5 successive downloads, the handler raises Too many redirects exception due to the shared counter reaching its default limit, effectively preventing further downloads.

Metadata

Metadata

Labels

Standard GitHub labelIssue caused by core project dependency modules or libraryWIPbugSomething isn't working

Type

No type

Projects

Status

Done ✔️

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions