review feedback tweaks

This commit is contained in:
Patrik Oldsberg
2021-02-10 17:23:28 +01:00
parent 8d2089a432
commit 6cd39362e7
5 changed files with 6 additions and 12 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export class FossaClient implements FossaApi {
const apiUrl = `${await this.discoveryApi.getBaseUrl('proxy')}/fossa`;
const idToken = await this.identityApi.getIdToken();
const response = await fetch(`${apiUrl}/${path}`, {
headers: idToken ? { authorization: `Bearer ${idToken}` } : {},
headers: idToken ? { Authorization: `Bearer ${idToken}` } : {},
});
if (response.status === 200) {
return await response.json();