mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: readd user-agent
This commit is contained in:
parent
fa3487e5a4
commit
892bcf161c
1 changed files with 2 additions and 0 deletions
|
|
@ -96,6 +96,8 @@ export class BaseClient {
|
||||||
headers: {
|
headers: {
|
||||||
Cookie: this?.authCookies?.join(";") ?? [],
|
Cookie: this?.authCookies?.join(";") ?? [],
|
||||||
Authorization: "Basic " + this.sessionId,
|
Authorization: "Basic " + this.sessionId,
|
||||||
|
"User-Agent":
|
||||||
|
"classcharts-api https://github.com/classchartsapi/classcharts-api-js",
|
||||||
...fetchOptions.headers,
|
...fetchOptions.headers,
|
||||||
},
|
},
|
||||||
} satisfies RequestInit;
|
} satisfies RequestInit;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue