mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-08-21 02:23:38 +00:00
fix megalodon user agent
This commit is contained in:
parent
25c96c1688
commit
a0f3ac8af3
1 changed files with 4 additions and 1 deletions
|
@ -585,7 +585,10 @@ namespace MisskeyAPI {
|
||||||
public async get<T>(path: string, params: any = {}, headers: { [key: string]: string } = {}): Promise<Response<T>> {
|
public async get<T>(path: string, params: any = {}, headers: { [key: string]: string } = {}): Promise<Response<T>> {
|
||||||
let options: AxiosRequestConfig = {
|
let options: AxiosRequestConfig = {
|
||||||
params: params,
|
params: params,
|
||||||
headers: headers,
|
headers: {
|
||||||
|
'User-Agent': this.userAgent,
|
||||||
|
...headers,
|
||||||
|
},
|
||||||
maxContentLength: Infinity,
|
maxContentLength: Infinity,
|
||||||
maxBodyLength: Infinity
|
maxBodyLength: Infinity
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue