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

Issue 12224008: Add to the list of HTTP headers that don't overwrite in 304 responses. (Closed)

Created:
7 years, 10 months ago by Mike West
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, abarth-chromium, Tom Sepez
Visibility:
Public.

Description

Add to the list of HTTP headers that don't overwrite in 304 responses. Entity headers, such as those prefixed by 'Content-', 'X-WebKit-', and 'X-Content-', should only be accepted on the original response, not on 304 responses for the same resource. This patch adds some specific headers ('X-XSS-Protection', 'X-Frame-Options'), and adds support for prefixes we should ignore on these response. BUG=174301 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180724

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -9 lines) Patch
M net/http/http_response_headers.cc View 2 chunks +16 lines, -9 lines 4 comments Download
M net/http/http_response_headers_unittest.cc View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mike West
Hi Jochen! Would you mind taking a look at this patch? Once you're happy with ...
7 years, 10 months ago (2013-02-05 11:21:12 UTC) #1
jochen (gone - plz use gerrit)
pure happiness, please go ahead!
7 years, 10 months ago (2013-02-05 12:46:03 UTC) #2
Mike West
On 2013/02/05 12:46:03, jochen wrote: > pure happiness, please go ahead! You are evidently quite ...
7 years, 10 months ago (2013-02-05 12:52:31 UTC) #3
Mike West
On 2013/02/05 12:52:31, Mike West (chromium) wrote: > On 2013/02/05 12:46:03, jochen wrote: > > ...
7 years, 10 months ago (2013-02-05 13:39:34 UTC) #4
agl
lgtm https://codereview.chromium.org/12224008/diff/1/net/http/http_response_headers.cc File net/http/http_response_headers.cc (right): https://codereview.chromium.org/12224008/diff/1/net/http/http_response_headers.cc#newcode89 net/http/http_response_headers.cc:89: const char* const kNonUpdatedHeaderPrefixes[] = { Minor sadness ...
7 years, 10 months ago (2013-02-05 14:41:55 UTC) #5
Mike West
Thank, Adam. I'll throw this in the queue as-is, and I've filed bugs to follow ...
7 years, 10 months ago (2013-02-05 15:59:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkwst@chromium.org/12224008/1
7 years, 10 months ago (2013-02-05 16:04:23 UTC) #7
commit-bot: I haz the power
7 years, 10 months ago (2013-02-05 18:10:30 UTC) #8
Message was sent while issue was closed.
Change committed as 180724

Powered by Google App Engine
This is Rietveld 408576698