fix megalodon user agent

This commit is contained in:
Hazelnoot 2025-04-29 16:18:20 -04:00
parent 25c96c1688
commit a0f3ac8af3

View file

@ -585,7 +585,10 @@ namespace MisskeyAPI {
public async get<T>(path: string, params: any = {}, headers: { [key: string]: string } = {}): Promise<Response<T>> {
let options: AxiosRequestConfig = {
params: params,
headers: headers,
headers: {
'User-Agent': this.userAgent,
...headers,
},
maxContentLength: Infinity,
maxBodyLength: Infinity
}