mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2026-02-13 10:22:55 +00:00
Compare commits
2 Commits
main
...
fix-basic-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5664b433d | ||
|
|
fc6f897eaa |
@@ -1326,7 +1326,7 @@ func ipFilterHandler(h http.Handler, ipFilterOptions *IPFilterOptions) http.Hand
|
|||||||
|
|
||||||
func (s *Server) basicAuthHandler(h http.Handler) http.HandlerFunc {
|
func (s *Server) basicAuthHandler(h http.Handler) http.HandlerFunc {
|
||||||
return func(w http.ResponseWriter, r *http.Request) {
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
if s.authUser == "" || s.authPass == "" || s.authHtpasswd == "" {
|
if s.authUser == "" && s.authPass == "" && s.authHtpasswd == "" {
|
||||||
h.ServeHTTP(w, r)
|
h.ServeHTTP(w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user