Kong / mashape-oauth

OAuth Modules for Node.js - Supporting RSA, HMAC, PLAINTEXT, 2,3-Legged, 1.0a, Echo, XAuth, and 2.0
http://oauthbible.com
MIT License
1.77k stars 186 forks source link

Change to using Object's hasOwnProperty #26

Closed adamk33n3r closed 7 years ago

adamk33n3r commented 7 years ago

querystring's parsed object does not inherit from Object so it does not get the hasOwnProperty method. This causes an error when passing a query string as body

mnsrv commented 7 years ago

Please merge this pull request. In node 6 version I have this error TypeError: context.hasOwnProperty is not a function

This pull request solves this problem!

nijikokun commented 7 years ago

Great catch :+1: