| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
For the `request()` and `get()` functions. I could never
really understand why these two functions go through agent
first... Especially since the user could be passing `agent: false`
or a different Agent instance completely, in which `globalAgent`
will be completely bypassed.
Moved the relevant logic from `Agent#request()` into the
`ClientRequest` constructor.
Incidentally, this commit fixes #7012 (which was the original
intent of this commit).
|
| | |
|
| | |
|
| |
|
|
|
| |
Increases the grep factor. Makes it easier to harmonize type checks
across the code base.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
Split `tls.js` into `_tls_legacy.js`, containing legacy
`createSecurePair` API, and `_tls_wrap.js` containing new code based on
`tls_wrap` binding.
Remove tests that are no longer useful/valid.
|
| |
|
|
|
|
|
| |
Like commit d258fb0 ("http: More useful setTimeout API on server") but
this time for the https module.
Fixes #5361.
|
| |
|
|
| |
Stop using `arguments` for performance and readability.
|
| |
|
|
|
|
|
| |
Listen for the 'clientError' event that is emitted when a renegotation attack
is detected and close the connection.
Fixes test/pummel/test-https-ci-reneg-attack.js
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
https.get() now accepts either a URL (as a string) or an options object.
Refs #2859.
Fixes #3882.
|
| |
|
|
| |
This reverts commit 53716eb0b5338999761d115fad9d392077836e63.
|
| |
|
|
|
| |
It's useful for passing some additional options of request object to the
underlying API
|
| |
|
|
| |
Binds to a local address before making the outgoing connection.
|
| | |
|
| | |
|
| |
|
|
| |
Refs #1983.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
| |
Fixes #1411
|
| |
|
|
| |
http2 is currently disabled pending addition of a --use-http2 switch
|
| | |
|
| |
|
|
| |
fixes #979.
|
| |
|
|
| |
closes #926.
|
| |
|
|
|
|
| |
However, this test is failing for some quite unrelated issue.
Getting some odd "socket hangup" crashes, and only the first request
ever makes it to the server.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|