From 3d3020f8270fda08ecbdcdb9c6e972fa04d997ea Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 22 Jun 2023 20:39:38 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=B4=EB=8D=94=20=EB=8B=A4=EC=8B=9C=20?= =?UTF-8?q?=EC=A1=B0=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/http_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/http_handler.go b/server/http_handler.go index 8a7c59d..2eb16bb 100644 --- a/server/http_handler.go +++ b/server/http_handler.go @@ -66,10 +66,10 @@ func (h *houstonHandler) RegisterHandlers(serveMux *http.ServeMux, prefix string serveMux.Handle(prefix, h) fsx := http.FileServer(http.Dir(h.deployPath)) - serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_deploys), http.StripPrefix(fmt.Sprintf("%s/deploys/", prefix), fsx)) + serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_deploys), http.StripPrefix(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_deploys), fsx)) ufsx := http.FileServer(http.Dir(h.downloadPath)) - serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_downloads), http.StripPrefix(fmt.Sprintf("%s/downloads/", prefix), ufsx)) + serveMux.Handle(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_downloads), http.StripPrefix(fmt.Sprintf("%s/%s/", prefix, sub_folder_name_downloads), ufsx)) serveMux.HandleFunc(fmt.Sprintf("%s/upload", prefix), func(w http.ResponseWriter, r *http.Request) { defer func() {