Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Paperback/Paperback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down