Make URLRequestFetchJob actually work
This commit is contained in:
parent
44f8bfc550
commit
af05f26a5f
6 changed files with 130 additions and 61 deletions
|
@ -116,8 +116,7 @@ class CustomProtocolRequestJob : public AdapterRequestJob {
|
|||
GetWeakPtr(), path));
|
||||
return;
|
||||
} else if (name == "RequestErrorJob") {
|
||||
// Default value net::ERR_NOT_IMPLEMENTED
|
||||
int error = -11;
|
||||
int error = net::ERR_NOT_IMPLEMENTED;
|
||||
dict.Get("error", &error);
|
||||
|
||||
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
|
||||
|
|
|
@ -36,6 +36,6 @@ class RequestErrorJob
|
|||
|
||||
protocol.RequestHttpJob =
|
||||
class RequestHttpJob
|
||||
constructor: (@url) ->
|
||||
constructor: ({@url}) ->
|
||||
|
||||
module.exports = protocol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue