Skip to content
Snippets Groups Projects
Commit d37d1e97 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

remove latest \n in bosh received messages (one is added when we send)

parent 8514e516
No related branches found
No related tags found
No related merge requests found
......@@ -687,6 +687,9 @@ class NonBlockingHTTP(NonBlockingTCP):
httpbody - string with http body)
'''
message = message.replace('\r','')
# Remove latest \n
if message.endswith('\n'):
message = message[:-1]
(header, httpbody) = message.split('\n\n', 1)
header = header.split('\n')
statusline = header[0].split(' ', 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment