Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirection handling changes #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

KingAl
Copy link

@KingAl KingAl commented Jun 13, 2022

Hi folks, I noticed that redirections weren't being handled properly when I was using this library - they would result in an error, due to an attempt to access self.reply when it was set to None, and I noticed that other request arguments would revert to defaults on the redirect call as well.

Have added some simple fixes which have been sufficient for my needs. You may or may not want to use as-is but I thought my fixes would be useful as an illustration of the issues either way.

KingAl added 2 commits June 13, 2022 13:09
Stopgap to improve redirect handling
Addresses two bugs: 
   - request configuration is not carried forward,
   - after redirect handling, replyFinished triggers errors accessing members on self.reply (set to None)

The redirections parameter is now meaningful. Refactoring to avoid re-passing arguments on redirect probably appropriate longer term.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant