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

Commit

Permalink
Pass through custom options for got everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jun 22, 2017
1 parent e718c2b commit 47e5cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function getCsrf (opts) {
})
}

return got(`${opts.host}/_/mobile/init`, { json: true })
return got(`${opts.host}/_/mobile/init`, json(opts))
.then(({ body, headers }) => ({
csrf: body.data[0].c,
session: getSessionCookie(headers['set-cookie'])
Expand Down

0 comments on commit 47e5cca

Please sign in to comment.