summaryrefslogtreecommitdiff
path: root/test/simple/test-http-url.parse-https.request.js
Commit message (Collapse)AuthorAgeFilesLines
* test: set rejectUnauthorized in tls/https testsBen Noordhuis2012-09-151-3/+1
| | | | | Update the tls and https tests to explicitly set rejectUnauthorized instead of relying on the NODE_TLS_REJECT_UNAUTHORIZED environment variable getting set.
* tls, https: validate server certificate by defaultBen Noordhuis2012-09-151-0/+3
| | | | | | | | | | | | | | | This commit changes the default value of the rejectUnauthorized option from false to true. What that means is that tls.connect(), https.get() and https.request() will reject invalid server certificates from now on, including self-signed certificates. There is an escape hatch: if you set the NODE_TLS_REJECT_UNAUTHORIZED environment variable to the literal string "0", node.js reverts to its old behavior. Fixes #3949.
* Lintseebees2011-10-221-1/+1
|
* http.request(url.parse(x))seebees2011-10-221-0/+57
http2.js protocols object to store defaults for http and https, and use as a switch for supported protocols. options.hostname > options.host > 'localhost' if I have an options.auth element and I do not have an Authorization header, I do basic auth. http.request collapses to new ClientRequest since the defaults are handled by the protocol object test-http-url.parse* Fixes #1390 Conflicts: lib/http2.js