Created for pull request on connect-mongo https://github.com/kcbanner/connect-mongo