mirror of
https://github.com/fanchenio/DawnLauncher.git
synced 2025-07-13 12:52:10 +08:00
修复获取部分网址信息失败问题
This commit is contained in:
parent
a94d5a2244
commit
333f0888be
@ -81,6 +81,8 @@ function downloadImage(windowName: string, url: string) {
|
||||
headers: {
|
||||
"User-Agent": getRandomUserAgent(),
|
||||
},
|
||||
maxRedirects: 5,
|
||||
jar: true,
|
||||
},
|
||||
function (error, response, body) {
|
||||
if (operation.retry(error)) {
|
||||
@ -147,6 +149,8 @@ function getURLInfo(windowName: string, url: string, redirect: boolean) {
|
||||
headers: {
|
||||
"User-Agent": getRandomUserAgent(),
|
||||
},
|
||||
maxRedirects: 5,
|
||||
jar: true,
|
||||
},
|
||||
function (error, response, body) {
|
||||
if (operation.retry(error)) {
|
||||
@ -245,6 +249,8 @@ function analysisHTML(windowName: string, url: string, data: string) {
|
||||
headers: {
|
||||
"User-Agent": getRandomUserAgent(),
|
||||
},
|
||||
maxRedirects: 5,
|
||||
jar: true,
|
||||
},
|
||||
function (error, response, body) {
|
||||
if (operation.retry(error)) {
|
||||
|
Loading…
Reference in New Issue
Block a user