You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
fix #26
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package browse
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
@@ -21,6 +22,6 @@ func ServeHTTP(w http.ResponseWriter, r *http.Request, c *config.Config) (int, e
|
||||
case "GET":
|
||||
return GET(w, r, c)
|
||||
default:
|
||||
return 400, nil
|
||||
return 400, errors.New("Invalid method.")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user