Skip to content

Commit

Permalink
Update lib/composables/dav.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo Morales <emoral435@gmail.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux and emoral435 committed Feb 21, 2024
1 parent c1391d0 commit c140ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/composables/dav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export const useDAVFiles = function(
const client = computed(() => {
if (isPublicEndpoint.value) {
const token = (document.getElementById('sharingToken')! as HTMLInputElement).value
const autorization = btoa(`${token}:null`)
const authorization = btoa(`${token}:null`)

return davGetClient(defaultRemoteUrl.value, {
Authorization: `Basic ${autorization}`,
Authorization: `Basic ${authorization}`,
})
}

Expand Down

0 comments on commit c140ab8

Please sign in to comment.