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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2676443004: Do not treat substitute-data resources as having successful HTTP status codes. (Closed)
Patch Set: Tests. Created 3 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 | « third_party/WebKit/LayoutTests/inspector/network/network-status-non-http-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index da7d65d99f6abaa313a92c605a8a13a52b99c444..bb318f7a945dfc572e9466fb3d900e7da7137ccb 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -383,8 +383,6 @@ Resource* ResourceFetcher::resourceForStaticData(
}
ResourceResponse response(url, mimetype, data->size(), charset, String());
- response.setHTTPStatusCode(200);
Nate Chapin 2017/02/03 18:00:22 This also means data: urls won't have status code.
- response.setHTTPStatusText("OK");
Resource* resource = factory.create(request.resourceRequest(),
request.options(), request.charset());
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/network/network-status-non-http-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698