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

Unified Diff: net/url_request/url_fetcher_core.cc

Issue 12096093: Add POST_WITHOUT_BODY to the UrlFetcher's method. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 11 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 | « net/url_request/url_fetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher_core.cc
diff --git a/net/url_request/url_fetcher_core.cc b/net/url_request/url_fetcher_core.cc
index b2c542e4a5dce2be45d65fb3e05f4a44df688d6a..11c89d225cbec2f2c041dc1d792e5f382e87dccc 100644
--- a/net/url_request/url_fetcher_core.cc
+++ b/net/url_request/url_fetcher_core.cc
@@ -755,6 +755,10 @@ void URLFetcherCore::StartURLRequest() {
&URLFetcherCore::InformDelegateUploadProgress);
break;
+ case URLFetcher::POST_WITHOUT_BODY:
+ request_->set_method("POST");
+ break;
+
case URLFetcher::HEAD:
request_->set_method("HEAD");
break;
« no previous file with comments | « net/url_request/url_fetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698