correct _split_line() for empty values
This commit is contained in:
parent
394ebb2693
commit
76e2879fd2
1 changed files with 2 additions and 2 deletions
4
mcg.py
4
mcg.py
|
@ -565,8 +565,8 @@ class Client(Base):
|
|||
|
||||
|
||||
def _split_line(self, line):
|
||||
parts = line.split(': ')
|
||||
return parts[0].lower(), ': '.join(parts[1:])
|
||||
parts = line.split(':')
|
||||
return parts[0].lower(), ':'.join(parts[1:]).lstrip()
|
||||
|
||||
|
||||
def _set_connection_status(self, status):
|
||||
|
|
Loading…
Reference in a new issue