-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
HTTP Redirection at Handshake #812
Comments
+1 |
Yes, the client does not follow redirects, but if I read the spec correctly "clients are not required to follow them". |
Hello! |
No, at the moment there is no way unless you monkey patch the code. |
Not sure how you'll prioritize this, so here's our use case. Please upvote the original post if you need this feature |
@blandinw a possible workaround is to use a proxy which follows redirects. |
I started a fix, in During handshake, if server answer by 301 or 302 status code, I tried the testing code provided on top of this thread, and it seems the socket is created properly. If this approach receive a good feedback, should we also check that the
line 654:
|
+1 it should handle redirections, it's a normal use case. |
+1 it should handle redirections, it's a normal use case. @jklepatch How about yoru fix, did you finish it? |
@flavioespinoza I'm not sure what you're trying to achieve, but I doubt you'll succeed with personal attacks. People working on this project do so on their spare time and let you benefit from their efforts for free. I understand (and share to some extent) your frustration, but maybe you can channel this energy into a clean pull request to fix this once and for all? In any case, let's try to be civil online, especially on GitHub :-) |
@bradisbell Good advice. I will. It will take me a few days as I am knee deep in deployment, but I'll fix it and submit a PR. However, I suspect (as with this thread and this bug) it will be ignored. But, we shall see. |
If you implement it well I'm more than happy to merge it when I can. As others already said, no one is getting paid to work on this project. FYI the WebSocket implementation in most browsers does not follow redirects. |
Any update on this? |
I'm also interested in the redirects. |
Please take a look at #1490. |
Hi there !
Like it say in the RFC 6455
But when i try a redirect status 302.
The websocket throw an Error 'unexpected server response (302)'
I misunderstand something or this is a divergence of the RFC 6455 ?
The text was updated successfully, but these errors were encountered: