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:
Cheng Zhao 2016-05-30 20:31:00 +09:00
parent 912cedc593
commit 49f1278601
3 changed files with 61 additions and 59 deletions

View file

@ -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') {