Skip to content

Commit

Permalink
fix: make index-fetch spec-compliant (nodejs#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Apr 24, 2022
1 parent a8c2918 commit 2a12787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const Agent = require('./lib/agent')
const globalDispatcher = new Agent()

const fetchImpl = require('./lib/fetch')
module.exports.fetch = async function fetch (resource, init) {
return fetchImpl.call(globalDispatcher, resource, init)
module.exports.fetch = async function fetch (resource) {
return fetchImpl.apply(globalDispatcher, arguments)
}
module.exports.FormData = require('./lib/fetch/formdata').FormData
module.exports.Headers = require('./lib/fetch/headers').Headers
Expand Down

0 comments on commit 2a12787

Please sign in to comment.