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

Unified Diff: content/browser/loader/buffered_resource_handler.cc

Issue 165983007: Return ERR_INVALID_RESPONSE when we get a funky error page mime-type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update test Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/buffered_resource_handler.cc
===================================================================
--- content/browser/loader/buffered_resource_handler.cc (revision 251585)
+++ content/browser/loader/buffered_resource_handler.cc (working copy)
@@ -365,7 +365,7 @@
// own error page instead of triggering a download.
// TODO(abarth): We should abstract the response_code test, but this kind
// of check is scattered throughout our codebase.
- request()->CancelWithError(net::ERR_FILE_NOT_FOUND);
+ request()->CancelWithError(net::ERR_INVALID_RESPONSE);
return false;
}
« no previous file with comments | « no previous file | content/browser/loader/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698