Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
fix normalized options--request does not walk prototype chain
Browse files Browse the repository at this point in the history
  • Loading branch information
René Kooi committed Mar 20, 2016
1 parent bab54b7 commit b6206e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function sequence(functions, cb, values = []) {
}

function normalizeOptions(maybeOpts = {}) {
const opts = Object.create(maybeOpts)
const opts = { ...maybeOpts }
if (!opts.jar) {
opts.jar = request.jar()
}
Expand Down
1 change: 0 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe('plug.dj', function () {
done()
})
})

})

describe('plug-login', function () {
Expand Down

0 comments on commit b6206e1

Please sign in to comment.