Skip to content

Commit

Permalink
fix(response): include url
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Aug 16, 2019
1 parent 7901621 commit a82beea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ class TestServer {
}
}

console.error(require.main)
if (require.main === module) {
const server = new TestServer()
server.start(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let base
before(done => {
local = spawn(process.execPath, [path.join(__dirname, 'server.js')])
local.stdout.on('data', chunk => {
base = `http://${chunk.toString().split(' ').pop()}/`
base = `http://${chunk.toString().split(' ').pop().trim()}/`
done()
})
})
Expand Down
1 change: 1 addition & 0 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ process.stdin.on('end', function () {
.then(response => response.buffer().then(buffer => respond([
buffer.toString(),
{
url: response.url,
headers: response.headers.entries(),
status: response.status,
statusText: response.statusText
Expand Down

0 comments on commit a82beea

Please sign in to comment.