Админка
This commit is contained in:
@@ -15,7 +15,9 @@ export class HttpClient {
|
||||
|
||||
const isFormData = fetchOptions.body instanceof FormData;
|
||||
const computedHeaders: Record<string, string> = {
|
||||
...(this.token ? { Authorization: `Bearer ${this.token}` } : {}),
|
||||
...(this.token
|
||||
? { Authorization: this.token.startsWith('Basic ') ? this.token : `Bearer ${this.token}` }
|
||||
: {}),
|
||||
...(fetchOptions.headers as Record<string, string>),
|
||||
};
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user