Commit 53cc16c
https: do not automatically use invalid servername
Stop automatically setting servername in https.request() if the target
host is specified with an IP address. Doing so is invalid, and triggers
a deprecation warning. It is still possible to send an IP address as a
servername if its required, but it needs to be explicity configured, it
won't happen automatically.
PR-URL: #28209
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 5fddde6 commit 53cc16cCopy full SHA for 53cc16c
File tree
Expand file treeCollapse file tree
3 files changed
+16
-2
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- test/parallel
Expand file treeCollapse file tree
3 files changed
+16
-2
lines changedOpen diff view settings
Collapse file
+10-2Lines changed: 10 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
28 | 34 | |
29 | 35 | |
30 | 36 | |
31 | 37 | |
32 | 38 | |
33 | 39 | |
34 | 40 | |
35 | | - |
| 41 | + |
| 42 | + |
| 43 | + |
36 | 44 | |
37 | 45 | |
38 | 46 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
256 | 256 | |
257 | 257 | |
258 | 258 | |
| 259 | + |
| 260 | + |
| 261 | + |
259 | 262 | |
260 | 263 | |
261 | 264 | |
|
Collapse file
test/parallel/test-https-simple.js
Copy file name to clipboardExpand all lines: test/parallel/test-https-simple.js+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
| 32 | + |
| 33 | + |
| 34 | + |
32 | 35 | |
33 | 36 | |
34 | 37 | |
|
0 commit comments