fix small mistake
This commit is contained in:
parent
f49675a7b3
commit
09bb9c3e5d
@ -193,6 +193,7 @@ func (server *Server) serveFile(w http.ResponseWriter, r *http.Request, path str
|
||||
relPath, err := filepath.Rel(server.Storage.Local.Path, path)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
accelPath := filepath.Join(location, relPath)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user