mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-09-16 01:34:04 +07:00
node_modules: update
This commit is contained in:
14
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
14
node_modules/nodemailer/lib/fetch/index.js
generated
vendored
@ -10,7 +10,7 @@ const packageData = require('../../package.json');
|
||||
|
||||
const MAX_REDIRECTS = 5;
|
||||
|
||||
module.exports = function(url, options) {
|
||||
module.exports = function (url, options) {
|
||||
return fetch(url, options);
|
||||
};
|
||||
|
||||
@ -33,11 +33,7 @@ function fetch(url, options) {
|
||||
|
||||
let fetchRes = options.fetchRes;
|
||||
let parsed = urllib.parse(url);
|
||||
let method =
|
||||
(options.method || '')
|
||||
.toString()
|
||||
.trim()
|
||||
.toUpperCase() || 'GET';
|
||||
let method = (options.method || '').toString().trim().toUpperCase() || 'GET';
|
||||
let finished = false;
|
||||
let cookies;
|
||||
let body;
|
||||
@ -115,11 +111,7 @@ function fetch(url, options) {
|
||||
headers['Content-Length'] = body.length;
|
||||
}
|
||||
// if method is not provided, use POST instead of GET
|
||||
method =
|
||||
(options.method || '')
|
||||
.toString()
|
||||
.trim()
|
||||
.toUpperCase() || 'POST';
|
||||
method = (options.method || '').toString().trim().toUpperCase() || 'POST';
|
||||
}
|
||||
|
||||
let req;
|
||||
|
Reference in New Issue
Block a user