Skip to content

Commit

Permalink
Merge pull request #7 from WillTheSun/fix/Edge-bug
Browse files Browse the repository at this point in the history
Edge Browser Bug
  • Loading branch information
nordsimon authored Apr 7, 2018
2 parents b1f532a + f232e30 commit f8d1dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = function (params) {
require('isomorphic-fetch')
if (!params.url) throw new Error('Missing url parameter')

var headers = new Headers(params.headers)
var headers = new Headers(params.headers || {})
headers.append('Content-Type', 'application/json')

return {
Expand Down

0 comments on commit f8d1dcb

Please sign in to comment.