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

Unified Diff: pdf/document_loader.cc

Issue 2457543002: M55: PDF: Don't follow redirects in the plugin. (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/document_loader.cc
diff --git a/pdf/document_loader.cc b/pdf/document_loader.cc
index ae608eff93e6e45bb7db06517afb70a403f80da5..ea4b664b27b53afccc3f6ccb50e23eae456a7ab9 100644
--- a/pdf/document_loader.cc
+++ b/pdf/document_loader.cc
@@ -335,7 +335,7 @@ pp::URLRequestInfo DocumentLoader::GetRequest(uint32_t position,
pp::URLRequestInfo request(client_->GetPluginInstance());
request.SetURL(url_);
request.SetMethod("GET");
- request.SetFollowRedirects(true);
+ request.SetFollowRedirects(false);
request.SetCustomReferrerURL(url_);
const size_t kBufSize = 100;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698