mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-04 16:59:53 +00:00
Merge pull request #66 from movie-web/fix-showbox-useragent
Fix showbox + add support for new simple-proxy version
This commit is contained in:
commit
0de21c17c6
2 changed files with 3 additions and 1 deletions
|
|
@ -7,6 +7,8 @@ const headerMap: Record<string, string> = {
|
|||
cookie: 'X-Cookie',
|
||||
referer: 'X-Referer',
|
||||
origin: 'X-Origin',
|
||||
'user-agent': 'X-User-Agent',
|
||||
'x-real-ip': 'X-X-Real-Ip',
|
||||
};
|
||||
|
||||
const responseHeaderMap: Record<string, string> = {
|
||||
|
|
|
|||
|
|
@ -49,9 +49,9 @@ export const sendRequest = async (ctx: ScrapeContext, data: object, altApi = fal
|
|||
headers: {
|
||||
Platform: 'android',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'User-Agent': 'okhttp/3.2.0',
|
||||
},
|
||||
body: formatted,
|
||||
});
|
||||
|
||||
return JSON.parse(response);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue