Refactor the URLRequestFetchJob code
This makes the read end and write end of the pipe have same logic, so it is more easy to maintain.
This commit is contained in:
parent
912cedc593
commit
49f1278601
3 changed files with 61 additions and 59 deletions
|
@ -511,7 +511,7 @@ describe('protocol module', function () {
|
|||
})
|
||||
})
|
||||
|
||||
it('loads resource for webContents', function (done) {
|
||||
it('works when target URL redirects', function (done) {
|
||||
var contents = null
|
||||
var server = http.createServer(function (req, res) {
|
||||
if (req.url == '/serverRedirect') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue