Skip to content

Commit

Permalink
Fix bug introdduced in previous version. Callbacks would not be called
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed May 13, 2017
1 parent 3e26dfa commit d90b96f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ module.exports = function (options) {
callback(undefined, status);
} else {
if (res.statusCode === 405) {
return httpStatus(url, relations, true);
return httpStatus(url, relations, true)(callback);
}

status = res.statusCode;
Expand Down

0 comments on commit d90b96f

Please sign in to comment.