diff --git a/src/Paperback/Paperback.ts b/src/Paperback/Paperback.ts index 01bb241..7f50f7e 100644 --- a/src/Paperback/Paperback.ts +++ b/src/Paperback/Paperback.ts @@ -104,7 +104,9 @@ export class KomgaRequestInterceptor implements SourceInterceptor { // raising an error in getAuthorizationString when we check for its existence // Thus we only inject an authorizationString if none are defined in the request if (request.headers.authorization === undefined) { - request.headers.authorization = await getAuthorizationString(this.stateManager) + request.headers = { + 'authorization': await getAuthorizationString(this.stateManager) + } } return request }