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

Issue 10809011: Fix removal of headers (Closed)

Created:
8 years, 5 months ago by battre
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, cbentzel+watch_chromium.org, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix removal of headers HttpResponseHeaders::RemoveHeaderWithValue did not correctly remove headers if the passed value contained a comma. For a header "Foo: bar, baz", RemoveHeaderWithValue("Foo", "bar, baz") would be be a non-op. This CL fixes that. As the web request API is the only consumer of this function, there will be no side effects on other code due to the changed behavior. BUG=137396 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148078

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments #

Patch Set 3 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -61 lines) Patch
M chrome/browser/extensions/api/web_request/web_request_api_helpers.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M net/http/http_response_headers.h View 1 2 chunks +2 lines, -12 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 2 chunks +31 lines, -41 lines 0 comments Download
M net/http/http_response_headers_unittest.cc View 1 2 chunks +29 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
battre
Hi Ricardo, could you please review this CL? Thanks, Dominic
8 years, 5 months ago (2012-07-19 09:56:21 UTC) #1
rvargas (doing something else)
Note that the description is wrong in that the current code eliminates the line when ...
8 years, 5 months ago (2012-07-19 19:11:02 UTC) #2
rvargas (doing something else)
On 2012/07/19 19:11:02, rvargas wrote: > Note that the description is wrong in that the ...
8 years, 5 months ago (2012-07-19 19:12:42 UTC) #3
battre
Thanks for the review. PTAL. Best regards, Dominic https://chromiumcodereview.appspot.com/10809011/diff/1/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://chromiumcodereview.appspot.com/10809011/diff/1/net/http/http_response_headers.cc#newcode314 net/http/http_response_headers.cc:314: void ...
8 years, 5 months ago (2012-07-23 13:31:11 UTC) #4
rvargas (doing something else)
LGTM
8 years, 5 months ago (2012-07-23 18:14:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/10809011/12001
8 years, 5 months ago (2012-07-24 08:51:19 UTC) #6
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 11:15:03 UTC) #7
Change committed as 148078

Powered by Google App Engine
This is Rietveld 408576698