Skip to content
Browse files

fixed trailing characters in value

  • Loading branch information...
1 parent 9f1a4e8 commit 81df678ab266d38f3f55b1a001030ca7d2dad19a @guyzmo committed May 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 eventsource/client.py
View
4 eventsource/client.py
@@ -92,15 +92,15 @@ 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:
event.data = value
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)

0 comments on commit 81df678

Please sign in to comment.
Something went wrong with that request. Please try again.