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

Unified Diff: net/http/http_network_transaction.cc

Issue 13609002: fix a problem that android cannot download files with basic authentication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adding a call in http_transactions to get the auth info Created 7 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
Index: net/http/http_network_transaction.cc
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 54d79f3ab78d9e6ac8c1a9cff8a60937652efc89..81007ca3d9bb5f1b87eecf450737a034c982a3c8 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -316,6 +316,11 @@ bool HttpNetworkTransaction::IsReadyToRestartForAuth() {
HaveAuth(pending_auth_target_);
}
+bool HttpNetworkTransaction::HasAuth() const {
+ return request_headers_.HasHeader(HttpRequestHeaders::kProxyAuthorization) ||
+ request_headers_.HasHeader(HttpRequestHeaders::kAuthorization);
+}
+
int HttpNetworkTransaction::Read(IOBuffer* buf, int buf_len,
const CompletionCallback& callback) {
DCHECK(buf);

Powered by Google App Engine
This is Rietveld 408576698