bypassProxyはproxyBypassHostsに判断を委譲するように

This commit is contained in:
tamaina
2023-01-04 17:28:54 +00:00
parent f14150c69d
commit 50b98a92a8
5 changed files with 7 additions and 8 deletions

View File

@@ -38,7 +38,6 @@ export class CaptchaService {
},
{
noOkError: true,
bypassProxy: true,
}
).catch(err => {
throw `${err.message ?? err}`;

View File

@@ -190,7 +190,7 @@ export class FetchInstanceMetadataService {
const faviconUrl = url + '/favicon.ico';
const favicon = await this.httpRequestService.fetch(faviconUrl, {}, { noOkError: true, bypassProxy: false });
const favicon = await this.httpRequestService.fetch(faviconUrl, {}, { noOkError: true });
if (favicon.ok) {
return faviconUrl;

View File

@@ -126,7 +126,6 @@ class LdSignature {
},
{
noOkError: true,
bypassProxy: false,
}
).then(res => {
if (!res.ok) {

View File

@@ -96,7 +96,6 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
},
{
noOkError: false,
bypassProxy: true,
}
);