Browse Source

compatiable fix for namespace messed up

pull/125/head
xuyaoqiang 8 years ago
parent
commit
6db548fde1
  1. 3
      socketio/packet.py

3
socketio/packet.py

@ -1,5 +1,6 @@
import functools
import json as _json
from urllib.parse import urlparse
import six
@ -87,7 +88,7 @@ class Packet(object):
ep = ''
self.namespace = None
self.data = None
ep = ep[1:]
ep = urlparse(ep[1:]).path
dash = (ep + '-').find('-')
attachment_count = 0
if ep[0:dash].isdigit():

Loading…
Cancel
Save