mongodb/node-mongodb-native — pull request #777 by jmandel (2012-11-20 19:29:47+00:00)
Title: tags shouldn't default to [] in url_parser

Creating a connecting via mongo URL should yield null readPreference tags (not []). Creating an empty list triggers an error when querying against a replica set server:

https://github.com/mongodb/node-mongodb-native/blob/master/lib/mongodb/connection/repl_set.js#L939

The attached pull request updates the `url_parser` (test included). It may also be desirable (preferable?) to update the `repl_set` code to be more permissive...