Skip to content

Commit

Permalink
Merge 9d081aa into 4659578
Browse files Browse the repository at this point in the history
  • Loading branch information
laughingdrew committed Aug 28, 2018
2 parents 4659578 + 9d081aa commit 87fb2d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ function renderFile (root, obj) {
}

function renderUrl (obj) {
return rest(obj.url).then((res) => { return JSON.parse(transformRaw(obj, res.entity)) })
const headers = Object.assign({'Content-Type':'application/json'}, obj.headers);
return rest({
path: obj.url,
method: obj.method,
entity: JSON.stringify(obj.entity),
headers
}).then((res) => { return JSON.parse(transformRaw(obj, res.entity)) })
}

function renderGraphql (obj) {
Expand Down

0 comments on commit 87fb2d8

Please sign in to comment.