diff options
author | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 00:00:22 +0000 |
---|---|---|
committer | wtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-14 00:00:22 +0000 |
commit | 77848d1c600524c50dee24c055b21a210f02e52f (patch) | |
tree | 845f71fca700d11b553a4f785be7c7656fb3cf03 /net/http/http_chunked_decoder.cc | |
parent | e2e66de14a2d076aa0b550677ecb0bcef2998bd1 (diff) | |
download | chromium_src-77848d1c600524c50dee24c055b21a210f02e52f.zip chromium_src-77848d1c600524c50dee24c055b21a210f02e52f.tar.gz chromium_src-77848d1c600524c50dee24c055b21a210f02e52f.tar.bz2 |
Add more info to the comment about www.yahoo.com's padding of
the chunk-size field.
Fix miscellaneous nits reported by cpplint.py.
Use ASCIItoWide instead of UTF8ToWide to convert the username
and password specified in a URL. Those two components of the
URL have to be ASCII. Carry over a TODO comment about unescaping
username/password from http_transaction_winhttp.cc.
R=eroman
Review URL: http://codereview.chromium.org/10864
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5410 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_chunked_decoder.cc')
-rw-r--r-- | net/http/http_chunked_decoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/http/http_chunked_decoder.cc b/net/http/http_chunked_decoder.cc index 1ecb9f4..14d1631 100644 --- a/net/http/http_chunked_decoder.cc +++ b/net/http/http_chunked_decoder.cc @@ -154,7 +154,8 @@ int HttpChunkedDecoder::ScanForChunkRemaining(const char* buf, int buf_len) { // While the HTTP 1.1 specification defines chunk-size as 1*HEX // some sites rely on more lenient parsing. -// http://www.yahoo.com/ for example, includes trailing spaces (0x20). +// http://www.yahoo.com/, for example, pads chunk-size with trailing spaces +// (0x20) to be 7 characters long, such as "819b ". // // A comparison of browsers running on WindowsXP shows that // they will parse the following inputs (egrep syntax): |