From 77848d1c600524c50dee24c055b21a210f02e52f Mon Sep 17 00:00:00 2001
From: "wtc@google.com" <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Fri, 14 Nov 2008 00:00:22 +0000
Subject: 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
---
 net/http/http_chunked_decoder.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'net/http/http_chunked_decoder.cc')

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):
-- 
cgit v1.1