diff options
author | sergeyu <sergeyu@chromium.org> | 2016-02-18 12:15:27 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-18 20:16:46 +0000 |
commit | a79277c9bdeabcdc4fab08c8fd2017610d4cd798 (patch) | |
tree | a54af05c972db47f6a18054eea0ca0e2a3bfcb31 /remoting/protocol | |
parent | cbfd0fc4299007a9618a973cf097db4fe06eec8e (diff) | |
download | chromium_src-a79277c9bdeabcdc4fab08c8fd2017610d4cd798.zip chromium_src-a79277c9bdeabcdc4fab08c8fd2017610d4cd798.tar.gz chromium_src-a79277c9bdeabcdc4fab08c8fd2017610d4cd798.tar.bz2 |
Add support for POST requests in UrlRequest interface
Previously UrlRequest supported only GET request. Now it also supports
POST.
BUG=577954
Review URL: https://codereview.chromium.org/1710723002
Cr-Commit-Position: refs/heads/master@{#376247}
Diffstat (limited to 'remoting/protocol')
-rw-r--r-- | remoting/protocol/port_allocator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/protocol/port_allocator.cc b/remoting/protocol/port_allocator.cc index cac6725..cc4f253 100644 --- a/remoting/protocol/port_allocator.cc +++ b/remoting/protocol/port_allocator.cc @@ -151,7 +151,8 @@ void PortAllocatorSession::TryCreateRelaySession() { "&password=" + net::EscapeUrlEncodedData(password(), false) + "&sn=1"; scoped_ptr<UrlRequest> url_request = - transport_context_->url_request_factory()->CreateUrlRequest(url); + transport_context_->url_request_factory()->CreateUrlRequest( + UrlRequest::Type::GET, url); url_request->AddHeader("X-Talk-Google-Relay-Auth: " + ice_config_.relay_token); url_request->AddHeader("X-Google-Relay-Auth: " + ice_config_.relay_token); |