Skip to content

Commit

Permalink
Mock user agent (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brainicism authored Dec 26, 2024
1 parent 8a5dded commit 9237eec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/session_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ export class SessionManager {
fetch: async (url: any, options: any): Promise<any> => {
try {
const response = await axios.post(url, options.body, {
headers: options.headers,
headers: {
...options.headers,
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
},
httpsAgent: dispatcher,
});

Expand Down

0 comments on commit 9237eec

Please sign in to comment.