Skip to content

Commit

Permalink
[bug] fix not load from network
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed Nov 23, 2024
1 parent 26a637f commit 785df6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -921,10 +921,11 @@ class XbpqAdapter {
}
async init() {
let res: string = this.source.ext;
if (this.source.ext.startsWith === 'http') {
if (this.source.ext.startsWith('http')) {
res = await request({
url: this.source.ext,
method: 'GET',
responseType: 'text',
headers: {
'User-Agent': 'okhttp/4.12.0',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ class XyqAdapter {
}
async init() {
let res: string = this.source.ext;
if (this.source.ext.startsWith === 'http') {
if (this.source.ext.startsWith('http')) {
res = await request({
url: this.source.ext,
method: 'GET',
responseType: 'text',
headers: {
'User-Agent': 'okhttp/4.12.0',
},
Expand Down

0 comments on commit 785df6f

Please sign in to comment.