Skip to content

Commit 7b682c7

Browse files
committed
fix(serverHandler): add Vary:Authorization header for global auth
1 parent 5ca644c commit 7b682c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serverHandler/vhostHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func NewVhostHandler(
6767
pageVarys = append(pageVarys, "Referer", "Origin")
6868
contentVarys = append(contentVarys, "Referer", "Origin")
6969
}
70-
if len(p.AuthUrls) > 0 || len(p.AuthDirs) > 0 {
70+
if p.GlobalAuth || len(p.AuthUrls) > 0 || len(p.AuthDirs) > 0 {
7171
pageVarys = append(pageVarys, "Authorization")
7272
contentVarys = append(contentVarys, "Authorization")
7373
}

0 commit comments

Comments
 (0)