Skip to content

Commit 9213adf

Browse files
committed
refactor(serverHandler): remove unused func param
1 parent cff50d8 commit 9213adf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/serverHandler/aliasHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (h *aliasHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
121121
}
122122

123123
if session.needAuth {
124-
h.notifyAuth(w, r)
124+
h.notifyAuth(w)
125125
}
126126

127127
if session.authSuccess {

src/serverHandler/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (h *aliasHandler) needAuth(rawQuery, vhostReqPath, reqFsPath string) (needA
2929
return false, false
3030
}
3131

32-
func (h *aliasHandler) notifyAuth(w http.ResponseWriter, r *http.Request) {
32+
func (h *aliasHandler) notifyAuth(w http.ResponseWriter) {
3333
w.Header().Set("WWW-Authenticate", "Basic realm=\"files\"")
3434
}
3535

0 commit comments

Comments
 (0)