mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-10-07 20:11:29 +07:00
node_modules: upgrade
This commit is contained in:
5
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
5
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
@ -7,6 +7,7 @@ const zlib = require('zlib');
|
||||
const PassThrough = require('stream').PassThrough;
|
||||
const Cookies = require('./cookies');
|
||||
const packageData = require('../../package.json');
|
||||
const net = require('net');
|
||||
|
||||
const MAX_REDIRECTS = 5;
|
||||
|
||||
@ -131,6 +132,10 @@ function nmfetch(url, options) {
|
||||
});
|
||||
}
|
||||
|
||||
if (parsed.protocol === 'https:' && parsed.hostname && parsed.hostname !== reqOptions.host && !net.isIP(parsed.hostname) && !reqOptions.servername) {
|
||||
reqOptions.servername = parsed.hostname;
|
||||
}
|
||||
|
||||
try {
|
||||
req = handler.request(reqOptions);
|
||||
} catch (E) {
|
||||
|
Reference in New Issue
Block a user