mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix(http2): Use port 443 for HTTPS connections by default. (#7256)
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
This commit is contained in:
@@ -268,7 +268,8 @@ const buildAddressEntry = (address, family) => resolveFamily(utils.isObject(addr
|
|||||||
|
|
||||||
const http2Transport = {
|
const http2Transport = {
|
||||||
request(options, cb) {
|
request(options, cb) {
|
||||||
const authority = options.protocol + '//' + options.hostname + ':' + (options.port || 80);
|
const authority = options.protocol + '//' + options.hostname + ':' + (options.port ||(options.protocol === 'https:' ? 443 : 80));
|
||||||
|
|
||||||
|
|
||||||
const {http2Options, headers} = options;
|
const {http2Options, headers} = options;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user