mikeal/request — pull request #484 by tmenari (2013-03-19 15:31:44+00:00)
Title: Check hasOwnProperty in prototype.qs

Hi,

I'm working on a project where some functions get added to Object's prototype.

When request.prototype.qs copied over params into "base" this meant it also added these functions, and so all my requests with qs options had &extraFunctionName&anotherExtra... on the end, which made some APIs we were using very unhappy.

This fix just adds a hasOwnProperty check inside the for loop.

Thanks,
Thomas