Skip to content

Commit

Permalink
closes hapijs#971
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed Jul 15, 2013
1 parent 1fc5a8f commit 1d8ce11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ exports._generate = function (result, onSend) {
response = new internals.Buffer(result);
}
else if (result.isHapiResponse ||
result instanceof Boom) {
(result.isBoom && result instanceof Error)) { // Checking 'instanceof Boom' is unreliable

response = result;
}
Expand Down

0 comments on commit 1d8ce11

Please sign in to comment.