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

Unified Diff: Source/core/loader/BeaconLoader.cpp

Issue 996143002: Do really include the beacon Blob content type if valid. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « LayoutTests/http/tests/navigation/beacon-same-origin-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/BeaconLoader.cpp
diff --git a/Source/core/loader/BeaconLoader.cpp b/Source/core/loader/BeaconLoader.cpp
index 82e10481e9b056bfab5de9875d226af3be72b232..17126db5ba9c6bc55d43dcff002217ddcef9f7e2 100644
--- a/Source/core/loader/BeaconLoader.cpp
+++ b/Source/core/loader/BeaconLoader.cpp
@@ -147,10 +147,9 @@ bool Beacon::serialize(Blob* data, ResourceRequest& request, int, int&)
request.setHTTPBody(entityBody.release());
- AtomicString contentType;
const String& blobType = data->type();
if (!blobType.isEmpty() && isValidContentType(blobType))
- request.setHTTPContentType(AtomicString(contentType));
+ request.setHTTPContentType(AtomicString(blobType));
return true;
}
« no previous file with comments | « LayoutTests/http/tests/navigation/beacon-same-origin-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698