| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Make `http2.connect()` work when using URLs with literal IPv6 addresses. Fixes: nodejs#28216
Sorry, something went wrong.
| const port = '' + (authority.port !== '' ? | ||
| authority.port : (authority.protocol === 'http:' ? 80 : 443)); | ||
| const host = authority.hostname || authority.host || 'localhost'; | ||
| let host = ''; |
There was a problem hiding this comment.
Looks like host can be default to localhost and remove the last else ?
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
Make `http2.connect()` work when using URLs with literal IPv6 addresses. Fixes: #28216 PR-URL: #28406 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Make `http2.connect()` work when using URLs with literal IPv6 addresses. Fixes: #28216 PR-URL: #28406 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Make `http2.connect()` work when using URLs with literal IPv6 addresses. Fixes: #28216 PR-URL: #28406 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
|
Is there any chance of this getting backported to node 10? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Make http2.connect() work when using URLs with literal IPv6
addresses.
Fixes: #28216
Checklist