Comments (5)
So, this means that you choose to support 301 and 302 redirects, but not 307 redirects because clients can, but are not required, to follow 3xx standards? Sad, cause I'm hitting this same issue.
from websocket-client.
The link you provided is to the HTTP Semantics RFC, but the relevant text in the WebSockets hybi-13 spec that this repository supports is:
If the status code received from the server is not 101, the client handles the response per HTTP [RFC2616] procedures, in particular the client might perform authentication if it receives 401 status code, the server might redirect the client using a 3xx status code (but clients are not required to follow them), etc. Otherwise, proceed as follows.
from websocket-client.
The fix was provided in commit 69468ad but a new version has not been made yet. Please use the latest commit for this feature for now.
The text I provided before was clarification because the OP mentioned a RFC that was not the websocket RFC
from websocket-client.
I've had a feeling that since WebSocket RFC release, ws release didn't change, but HTTP protocol WS RFC refers to was changed with addition of mentioned status codes (307, 308), so I just pointed the HTTP change.
Thanks for fix.
from websocket-client.
@jakublATopera I forgot to push a new release last week, this is now fixed in 1.6.4
from websocket-client.
Related Issues (20)
- Type annotation for WebSocketApp.send argument "data" is missing bytes HOT 1
- Inconsistent function return values
- 1.7.0 being used in python 3.7 HOT 1
- Exceptions are "protected" HOT 7
- WebSocketApp connection not closing as expected HOT 1
- valueerror:too many file descriptors in select() HOT 4
- Handling of KeyboardInterrupt
- WebApp proxy configuration does not work
- ensuring regular callbacks to WebSocketApp's on_message() on the same thread
- Need help on connecting with custom socket HOT 1
- no_proxy is inconsistent with urllib and makes mixing libraries HAVE to put . when not needed if this library is not in use.
- Automatic reconnection docs misleading HOT 1
- on_error callback stops being called after first reconnection HOT 1
- Multiple on_open events HOT 10
- No route to host----when access IPv6 address failed,no attempt was made to access an IPv4 address HOT 1
- why on_close only was called once, so it causes the client to reconnect automatically only once, even I set reconnect parameter. HOT 8
- Is there a way to send a message every X seconds to the server? HOT 4
- reconnection fails when server returns op_code = ABNF.OPCODE_CLOSE HOT 5
- Reconnection with disptacher, issue with close HOT 7
- [Feature request] more clear error hint when number of open files exceeds the OS limit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websocket-client.