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

websocket: set follow_redirects to False #2920

Merged
merged 2 commits into from
Sep 25, 2020

Conversation

ploxiln
Copy link
Contributor

@ploxiln ploxiln commented Sep 22, 2020

cleanup of #2876
partial fix for #2405

It seems like request.follow_redirects = False might make more sense in WebSocketClientConnection.__init__() next to all the request url and header modification, I could easily move it there if you agree ...

@bdarnell
Copy link
Member

Yeah, I think it would be better to keep all the request modifications together. Thanks!

ploxiln and others added 2 commits September 25, 2020 14:03
instead of "uncaught exception" and then test timeout
to prevent silent failure when the websocket client gets a 3xx
redirect response, because it does not currently support redirects

Partial fix for issue tornadoweb#2405
@bdarnell bdarnell merged commit 5a069a8 into tornadoweb:master Sep 25, 2020
@ploxiln ploxiln deleted the websocket_no_redirect branch May 29, 2021 19:54
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.

None yet

3 participants