ajaxorg/node-github — pull request #53 by evilhackerdude (2012-10-03 14:01:16+00:00)
Title: Make boolean flags work in the v3 API

The original code of [`getQueryAndUrl(msg, def, format)`](https://github.com/ajaxorg/node-github/blob/master/index.js#L390) is failing if a boolean flag has a falsey value:

~~~ js
if (!msg[paramName])
~~~

For example, if I use `client.repos.update` to set `private` to `false` it wouldn't be included in the request body. The new code however allows falsey values:

~~~ js
if (!(paramName in msg))
~~~

Boom!

I also added more debugging goodness, but YMMV.