Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Issue 458: [new http] Normalize line continuations in response headers. (Closed)

Created:
12 years, 3 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

[new http] Normalize line continuations in response headers. BUG=1272571 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=1818

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -34 lines) Patch
M base/string_tokenizer.h View 1 3 chunks +9 lines, -7 lines 0 comments Download
M net/http/http_response_headers.h View 3 chunks +4 lines, -8 lines 0 comments Download
M net/http/http_response_headers_unittest.cc View 2 chunks +19 lines, -1 line 0 comments Download
M net/http/http_util.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_util.cc View 1 4 chunks +82 lines, -18 lines 0 comments Download
M net/http/http_util_unittest.cc View 1 chunk +235 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
eroman
12 years, 3 months ago (2008-09-05 00:24:29 UTC) #1
Evan Martin
http://codereview.chromium.org/458/diff/1/7 File base/string_tokenizer.h (right): http://codereview.chromium.org/458/diff/1/7#newcode196 Line 196: typedef StringTokenizerT<std::string, std::string::const_iterator> StringTokenizer; 80 chars, yo.
12 years, 3 months ago (2008-09-05 00:29:09 UTC) #2
darin (slow to review)
Awesome, LGTM! http://codereview.chromium.org/458/diff/1/3 File net/http/http_util.cc (right): http://codereview.chromium.org/458/diff/1/3#newcode358 Line 358: // (leading LWS implies a line ...
12 years, 3 months ago (2008-09-05 01:07:21 UTC) #3
wtc
http://codereview.chromium.org/458/diff/1/3 File net/http/http_util.cc (right): http://codereview.chromium.org/458/diff/1/3#newcode319 Line 319: raw_headers.append(line_begin, line_end); We should replace the LWS at ...
12 years, 3 months ago (2008-09-05 01:59:33 UTC) #4
eroman
12 years, 3 months ago (2008-09-05 22:26:34 UTC) #5
Spoke with wtc about the white space normalization.

The plan is this is ok to submit, and I will subsequently change the policy and
update the tests.

Doing it in two passes helps me ensure details don't get lost, and keeps the
diffs simpler.

http://codereview.chromium.org/458/diff/1/7
File base/string_tokenizer.h (right):

http://codereview.chromium.org/458/diff/1/7#newcode196
Line 196: typedef StringTokenizerT<std::string, std::string::const_iterator>
StringTokenizer;
On 2008/09/05 00:29:10, Evan Martin wrote:
> 80 chars, yo.

Done.

http://codereview.chromium.org/458/diff/1/3
File net/http/http_util.cc (right):

http://codereview.chromium.org/458/diff/1/3#newcode358
Line 358: // (leading LWS implies a line continuation)
On 2008/09/05 01:07:22, darin wrote:
> nit: please indicate that line continuations should have already been joined.

Done.

http://codereview.chromium.org/458/diff/1/5
File net/http/http_util.h (right):

http://codereview.chromium.org/458/diff/1/5#newcode49
Line 49: static bool IsLWS(char c);
On 2008/09/05 01:07:22, darin wrote:
> nit: please add a comment explaining what this means.

Done.

Powered by Google App Engine
This is Rietveld 408576698