feat: fixing merge conflicts, adding user linking for emby connect

#943
This commit is contained in:
Hermanus Engelbrecht
2025-02-22 19:11:37 +01:00
parent 844bfe65a2
commit d1cec17e0b
7 changed files with 474 additions and 1460 deletions

View File

@@ -112,7 +112,10 @@ class ExternalAPI {
ttl?: number,
config?: RequestInit
): Promise<T> {
const headers = { ...this.defaultHeaders, ...config?.headers };
const headers = new Headers({
...this.defaultHeaders,
...(config?.headers || {}),
});
const cacheKey = this.serializeCacheKey(endpoint, {
config: { ...this.params, ...params },
headers,
@@ -125,10 +128,6 @@ class ExternalAPI {
}
const url = this.formatUrl(endpoint, params);
const headers = new Headers({
...this.defaultHeaders,
...(config?.headers || {}),
});
const isFormUrlEncoded = headers
.get('Content-Type')