Skip to content

Commit cdfc636

Browse files
authored
Merge pull request #915 from rubensworks/fix/login-on-binary-file
Fix failure to log in when requesting binary files
2 parents cdaff9b + 9991b1d commit cdfc636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

default-views/auth/login-required.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
const session = await solid.auth.popupLogin()
3434
if (session) {
3535
// Make authenticated request to the server to establish a session cookie
36-
const {status} = await solid.auth.fetch(location)
36+
const {status} = await solid.auth.fetch(location, { method: 'HEAD' })
3737
if (status === 401) {
3838
alert(`Invalid login.\n\nDid you set ${session.idp} as your OIDC provider in your profile ${session.webId}?`)
3939
await solid.auth.logout()

0 commit comments

Comments
 (0)