From 09bb9c3e5d3667269c50ded2b58db181ab868f42 Mon Sep 17 00:00:00 2001 From: guochao Date: Thu, 19 Dec 2024 01:27:14 +0800 Subject: [PATCH] fix small mistake --- cmd/proxy/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 5f1e37f..4a35ba9 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -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)