Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed trailing characters in value

  • Loading branch information...
commit 81df678ab266d38f3f55b1a001030ca7d2dad19a 1 parent 9f1a4e8
@guyzmo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 eventsource/client.py
View
4 eventsource/client.py
@@ -92,7 +92,7 @@ def handle_stream(self,message):
for line in message.strip('\r\n').split('\r\n'):
(field, value) = line.split(":",1)
if field == 'event':
- event.name = value
+ event.name = value.lstrip()
elif field == 'data':
value = value.lstrip()
if event.data is None:
@@ -100,7 +100,7 @@ def handle_stream(self,message):
else:
event.data = "%s\n%s" % (event.data, value)
elif field == 'id':
- event.id = value
+ event.id = value.lstrip()
elif field == 'retry':
try:
self.retry_timeout = int(value)
Please sign in to comment.
Something went wrong with that request. Please try again.