Skip to content

Commit e01bfee

Browse files
committed
Changing from followRedirect to followAllRedirect
1 parent 78b503d commit e01bfee

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

services/notify-one-challenge.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
}),
1717
res = await request({
1818
method: 'GET',
19-
followRedirect: true,
20-
maxRedirects: 3,
19+
followAllRedirect: true,
2120
uri: testUrl,
2221
timeout: config.requestTimeout,
2322
resolveWithFullResponse: true

services/notify-one.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
async function notifyOneRest(apiurl, resourceUrl) {
1010
const res = await request({
1111
method: 'POST',
12-
followRedirect: true,
13-
maxRedirects: 3,
12+
followAllRedirect: true,
1413
uri: apiurl,
1514
timeout: config.requestTimeout,
1615
form: {

services/ping.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
try {
3434
res = await request({
3535
method: 'GET',
36+
followAllRedirect: true,
3637
uri: resourceUrl,
3738
timeout: config.requestTimeout,
38-
followRedirect: true,
39-
maxRedirects: 3,
4039
resolveWithFullResponse: true
4140
});
4241
} catch (err) {

services/please-notify.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
async function checkresourceUrlStatusCode(resourceUrl) {
1818
return request({
1919
method: 'GET',
20+
followAllRedirect: true,
2021
uri: resourceUrl,
2122
timeout: config.requestTimeout,
22-
followRedirect: true,
23-
maxRedirects: 3,
2423
resolveWithFullResponse: true
2524
})
2625
.then(res => {

0 commit comments

Comments
 (0)