Allow setting method for RequestHttpJob
This commit is contained in:
parent
81db8e098e
commit
274854876c
6 changed files with 41 additions and 15 deletions
|
@ -125,11 +125,13 @@ class CustomProtocolRequestJob : public AdapterRequestJob {
|
|||
return;
|
||||
} else if (name == "RequestHttpJob") {
|
||||
GURL url;
|
||||
std::string method;
|
||||
dict.Get("url", &url);
|
||||
dict.Get("method", &method);
|
||||
|
||||
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
|
||||
base::Bind(&AdapterRequestJob::CreateHttpJobAndStart,
|
||||
GetWeakPtr(), url));
|
||||
GetWeakPtr(), url, method));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue