mikeal/request — pull request #318 by isaacs (2012-09-04 14:50:22+00:00)
Title: Pass servername to tunneling secure socket creation

This makes the https-over-http proxy work when strictSSL is turned on.

In v0.8.4, we fixed a bug where an otherwise valid cert would be
accepted for a host that was not listed in the CN or subjectaltnames
sections of the certificate.

However, this breaks proxying, because you want to accept the cert if
it comes from the origin server, not tested against the proxy's
hostname.

This fixes isaacs/npm#2719