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

Issue 465048: net: Ignore the magic number sniffer if it determines an application/octet-st... (Closed)

Created:
11 years ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
jamesr
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Paweł Hajdan Jr.
Visibility:
Public.

Description

abarth fixed this in a separate CL. net: Ignore the magic number sniffer if it determines an application/octet-stream resource is text/plain. BUG=29354 TEST=See bug.

Patch Set 1 #

Total comments: 1

Patch Set 2 : with additional comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M net/base/mime_sniffer.cc View 1 1 chunk +7 lines, -1 line 0 comments Download
M net/base/mime_sniffer_unittest.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
jamesr
11 years ago (2009-12-04 01:33:26 UTC) #1
http://codereview.chromium.org/465048/diff/1/2
File net/base/mime_sniffer.cc (right):

http://codereview.chromium.org/465048/diff/1/2#newcode583
net/base/mime_sniffer.cc:583: if (type_hint == "application/octet-stream" &&
"text/plain" == *result)
Please include some sort of explanation for this (maybe a link to the bug).

Powered by Google App Engine
This is Rietveld 408576698