Skip to content

Commit

Permalink
Merge pull request #43 from rschamp/store-fixup
Browse files Browse the repository at this point in the history
Small fixes to #41
  • Loading branch information
rschamp authored Aug 28, 2018
2 parents 7bd0e9c + 8ef0432 commit 28b1e0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/WebHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ class WebHelper extends Helper {
}
return nets(Object.assign({
body: data,
method: method
method: method,
encoding: undefined // eslint-disable-line no-undefined
}, reqConfig), (err, resp, body) => {
if (err || Math.floor(resp.statusCode / 100) !== 2) {
return reject(err || resp.statusCode);
}
return resolve(Object.assign({
id: body['content-name']
id: body['content-name'] || assetId
}, body));
});
});
Expand Down

0 comments on commit 28b1e0a

Please sign in to comment.