summaryrefslogtreecommitdiffstats
path: root/google_apis
diff options
context:
space:
mode:
authorfgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 13:34:38 +0000
committerfgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-20 13:34:38 +0000
commit4d6a39da48beb5b7ee51037f053843b613c844d2 (patch)
tree1d4d795801b63280e9e853fb8e4a8a26b0c42435 /google_apis
parent5ce41bff22cfa80318b2e3c3749ae3b82b16061e (diff)
downloadchromium_src-4d6a39da48beb5b7ee51037f053843b613c844d2.zip
chromium_src-4d6a39da48beb5b7ee51037f053843b613c844d2.tar.gz
chromium_src-4d6a39da48beb5b7ee51037f053843b613c844d2.tar.bz2
[GCM] Updating request type of the URLFetcher in UnregistrationRequest to POST
Small update to fix a problem: when DELETE request is issued, response is 405 I looked for a test to update, but request type is not exposed on the fetcher. BUG=344657 Review URL: https://codereview.chromium.org/171403005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'google_apis')
-rw-r--r--google_apis/gcm/engine/unregistration_request.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/google_apis/gcm/engine/unregistration_request.cc b/google_apis/gcm/engine/unregistration_request.cc
index 17e1c13..416ba2a 100644
--- a/google_apis/gcm/engine/unregistration_request.cc
+++ b/google_apis/gcm/engine/unregistration_request.cc
@@ -151,7 +151,7 @@ void UnregistrationRequest::Start() {
DCHECK(!url_fetcher_.get());
url_fetcher_.reset(net::URLFetcher::Create(
- GURL(kRegistrationURL), net::URLFetcher::DELETE_REQUEST, this));
+ GURL(kRegistrationURL), net::URLFetcher::POST, this));
url_fetcher_->SetRequestContext(request_context_getter_);
std::string android_id = base::Uint64ToString(request_info_.android_id);