python-engineio 4.10.0__tar.gz → 4.10.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_engineio-4.10.0/src/python_engineio.egg-info → python_engineio-4.10.1}/PKG-INFO +1 -1
- {python_engineio-4.10.0 → python_engineio-4.10.1}/pyproject.toml +1 -1
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_server.py +4 -3
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/server.py +4 -3
- {python_engineio-4.10.0 → python_engineio-4.10.1/src/python_engineio.egg-info}/PKG-INFO +1 -1
- {python_engineio-4.10.0 → python_engineio-4.10.1}/LICENSE +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/MANIFEST.in +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/README.md +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/Makefile +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/_static/README.md +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/api.rst +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/client.rst +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/conf.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/index.rst +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/intro.rst +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/make.bat +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/docs/server.rst +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/setup.cfg +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/__init__.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_client.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/__init__.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/_websocket_wsgi.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/aiohttp.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/asgi.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/eventlet.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/gevent.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/gevent_uwsgi.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/sanic.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/threading.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/tornado.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_socket.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/base_client.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/base_server.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/base_socket.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/client.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/exceptions.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/json.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/middleware.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/packet.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/payload.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/socket.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/static_files.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/python_engineio.egg-info/SOURCES.txt +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/python_engineio.egg-info/dependency_links.txt +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/python_engineio.egg-info/not-zip-safe +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/python_engineio.egg-info/requires.txt +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/src/python_engineio.egg-info/top_level.txt +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/__init__.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/__init__.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/index.html +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/test_aiohttp.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/test_asgi.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/test_client.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/test_sanic.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/test_server.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/test_socket.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/async/test_tornado.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/__init__.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/index.html +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/test_client.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/test_middleware.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/test_packet.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/test_payload.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/test_server.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/common/test_socket.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/README.md +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/binary_b64_packet.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/binary_packet.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/json_packet.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/payload.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/run.sh +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/server_receive.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tests/performance/text_packet.py +0 -0
- {python_engineio-4.10.0 → python_engineio-4.10.1}/tox.ini +0 -0
|
@@ -269,11 +269,11 @@ class AsyncServer(base_server.BaseServer):
|
|
|
269
269
|
'bad-jsonp-index')
|
|
270
270
|
r = self._bad_request('Invalid JSONP index number')
|
|
271
271
|
elif method == 'GET':
|
|
272
|
+
upgrade_header = environ.get('HTTP_UPGRADE').lower() \
|
|
273
|
+
if 'HTTP_UPGRADE' in environ else None
|
|
272
274
|
if sid is None:
|
|
273
275
|
# transport must be one of 'polling' or 'websocket'.
|
|
274
276
|
# if 'websocket', the HTTP_UPGRADE header must match.
|
|
275
|
-
upgrade_header = environ.get('HTTP_UPGRADE').lower() \
|
|
276
|
-
if 'HTTP_UPGRADE' in environ else None
|
|
277
277
|
if transport == 'polling' \
|
|
278
278
|
or transport == upgrade_header == 'websocket':
|
|
279
279
|
r = await self._handle_connect(environ, transport,
|
|
@@ -288,7 +288,8 @@ class AsyncServer(base_server.BaseServer):
|
|
|
288
288
|
r = self._bad_request('Invalid session ' + sid)
|
|
289
289
|
else:
|
|
290
290
|
socket = self._get_socket(sid)
|
|
291
|
-
if self.transport(sid) != transport
|
|
291
|
+
if self.transport(sid) != transport and \
|
|
292
|
+
transport != upgrade_header:
|
|
292
293
|
self._log_error_once(
|
|
293
294
|
'Invalid transport for session ' + sid,
|
|
294
295
|
'bad-transport')
|
|
@@ -251,11 +251,11 @@ class Server(base_server.BaseServer):
|
|
|
251
251
|
'bad-jsonp-index')
|
|
252
252
|
r = self._bad_request('Invalid JSONP index number')
|
|
253
253
|
elif method == 'GET':
|
|
254
|
+
upgrade_header = environ.get('HTTP_UPGRADE').lower() \
|
|
255
|
+
if 'HTTP_UPGRADE' in environ else None
|
|
254
256
|
if sid is None:
|
|
255
257
|
# transport must be one of 'polling' or 'websocket'.
|
|
256
258
|
# if 'websocket', the HTTP_UPGRADE header must match.
|
|
257
|
-
upgrade_header = environ.get('HTTP_UPGRADE').lower() \
|
|
258
|
-
if 'HTTP_UPGRADE' in environ else None
|
|
259
259
|
if transport == 'polling' \
|
|
260
260
|
or transport == upgrade_header == 'websocket':
|
|
261
261
|
r = self._handle_connect(environ, start_response,
|
|
@@ -270,7 +270,8 @@ class Server(base_server.BaseServer):
|
|
|
270
270
|
r = self._bad_request('Invalid session')
|
|
271
271
|
else:
|
|
272
272
|
socket = self._get_socket(sid)
|
|
273
|
-
if self.transport(sid) != transport
|
|
273
|
+
if self.transport(sid) != transport and \
|
|
274
|
+
transport != upgrade_header:
|
|
274
275
|
self._log_error_once(
|
|
275
276
|
'Invalid transport for session ' + sid,
|
|
276
277
|
'bad-transport')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/_websocket_wsgi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_engineio-4.10.0 → python_engineio-4.10.1}/src/engineio/async_drivers/gevent_uwsgi.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_engineio-4.10.0 → python_engineio-4.10.1}/src/python_engineio.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_engineio-4.10.0 → python_engineio-4.10.1}/src/python_engineio.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|