Skip to content

Commit

Permalink
fixed send.arguments not checking data correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
spion committed May 10, 2013
1 parent a7e03be commit da75a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/send.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports.arguments = (code, headers, data) ->
if (process.env['NODE_ENV'] == 'development')
ans.stack = data.stack
data = JSON.stringify(ans)
else if (null != data && !(data instanceof Buffer))
else if (data? && !(data instanceof Buffer))
ctype = 'application/json'
data = JSON.stringify(data)

Expand Down

0 comments on commit da75a3e

Please sign in to comment.