Skip to content

Commit

Permalink
Change User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNetsky committed Dec 30, 2024
1 parent 56331c1 commit 1fa50a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HentaiCosplay/HentaiCosplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
const HC_DOMAIN = 'https://hentai-cosplay-xxx.com'

export const HentaiCosplayInfo: SourceInfo = {
version: '1.1.3',
version: '1.1.4',
name: 'HentaiCosplay',
icon: 'icon.png',
author: 'Netsky',
Expand Down Expand Up @@ -62,7 +62,7 @@ export class HentaiCosplay implements SearchResultsProviding, MangaProviding, Ch
...(request.headers ?? {}),
...{
'referer': `${HC_DOMAIN}/`,
'user-agent': await this.requestManager.getDefaultUserAgent()
'user-agent': (await this.requestManager.getDefaultUserAgent()).replace(/iPhone/i, 'iPad')
}
}
request.url = request.url.replace(/^http:/, 'https:')
Expand Down Expand Up @@ -204,7 +204,7 @@ export class HentaiCosplay implements SearchResultsProviding, MangaProviding, Ch
method: 'GET',
headers: {
'referer': `${HC_DOMAIN}/`,
'user-agent': await this.requestManager.getDefaultUserAgent()
'user-agent': (await this.requestManager.getDefaultUserAgent()).replace(/iPhone/i, 'iPad')
}
})
}
Expand Down

0 comments on commit 1fa50a4

Please sign in to comment.