Closed valscion closed 10 years ago
+1. I discovered the same bug. This fix rectified it completely.
This fixes it for me too. @VesQ, thanks for doing this -- I'm going to use your fork until this is merged.
Sorry for the delay. Didn't see the original notifications. I was using x-www-form-urlencoded
payloads, so that's why I didn't hit this. Merging.
Thank you!
The
express.bodyParser()
already converts a JSON response to a populated object onreq.body
.Hookshot crashed always when receiving a payload, because it tried to parse "undefined" with JSON.parse, failing
SyntaxError: Unexpected token u
on line 15.