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

Unified Diff: chrome/browser/local_discovery/privet_url_fetcher.cc

Issue 177373010: [Privet FS] Allow files to be able to be copied in to the privet filesystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/local_discovery/privet_url_fetcher.cc
diff --git a/chrome/browser/local_discovery/privet_url_fetcher.cc b/chrome/browser/local_discovery/privet_url_fetcher.cc
index c4f6f5e68585afecc06a1a4a75cbb605ddc3fa64..3ab00d67d7a419684dbc5013ada4e6fb60100b85 100644
--- a/chrome/browser/local_discovery/privet_url_fetcher.cc
+++ b/chrome/browser/local_discovery/privet_url_fetcher.cc
@@ -151,7 +151,8 @@ void PrivetURLFetcher::Try() {
}
// URLFetcher requires us to set upload data for POST requests.
- if (request_type_ == net::URLFetcher::POST) {
+ if (request_type_ == net::URLFetcher::POST ||
+ request_type_ == net::URLFetcher::PUT) {
if (!upload_file_path_.empty()) {
url_fetcher_->SetUploadFilePath(
upload_content_type_,

Powered by Google App Engine
This is Rietveld 408576698