Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Added detection of split token #481
commented on the diff
Nov 18, 2013
|@@ -23,6 +23,11 @@ def on_headers_complete(headers)|
|+ # Ended with half a token \r and not \r\n and thus BufferedTokenizer will|
|+ # not split the line correctly. We need to ensure that each chunk of data passed|
|+ # to BufferedTokenizer does NOT end with \r|
|+ data += "\n" if data[-1] == "\r"|