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

Issue 40137: Clean up HttpResponseHeaders::IsKeepAlive. Use the... (Closed)

Created:
11 years, 9 months ago by wtc
Modified:
9 years, 7 months ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Clean up HttpResponseHeaders::IsKeepAlive. Use the parsed HTTP version in the http_version_ member. Pass NULL to EnumerateHeader. R=eroman Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11045

Patch Set 1 #

Patch Set 2 : Remove the two meaningless test cases #

Patch Set 3 : Upload before checkin #

Patch Set 4 : Upload before checkin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M net/http/http_response_headers.cc View 1 2 3 1 chunk +4 lines, -8 lines 0 comments Download
M net/http/http_response_headers_unittest.cc View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
wtc
1. Re: the 'iter' change: EnumerateHeader does not change *iter when it returns false, so ...
11 years, 9 months ago (2009-03-04 23:50:36 UTC) #1
eroman
11 years, 9 months ago (2009-03-05 07:26:51 UTC) #2
LGTM, good cleanup.

I wouldn't worry about the first two test cases.

Since in HTTP/0.9 there is no concept of statusline or headers, it probably
doesn't make sense to be reached with those inputs (parsing the response body as
if it where headers; http_network_transaction decides if it is 0.9 before
feeding data into the header parser).

Powered by Google App Engine
This is Rietveld 408576698