From 0abdbcd54ec09a463d63f06b536e115603e964ae Mon Sep 17 00:00:00 2001 From: TOL Date: Fri, 19 Jul 2024 13:49:18 +0900 Subject: [PATCH] Fix download logic (#19) --- web/controller.go | 1 + web/s3_controller.go | 1 + 2 files changed, 2 insertions(+) diff --git a/web/controller.go b/web/controller.go index 2bc66bf..153fba0 100644 --- a/web/controller.go +++ b/web/controller.go @@ -21,6 +21,7 @@ func CliSdkHandler(w http.ResponseWriter, r *http.Request) { return } else if strings.Contains(userAgent, "command/s3.cp") { awscli.Cp(w, r) + return } // AWS SDK request diff --git a/web/s3_controller.go b/web/s3_controller.go index fe59487..0198176 100644 --- a/web/s3_controller.go +++ b/web/s3_controller.go @@ -49,6 +49,7 @@ func S3Handler(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), status) return } + return } slog.Info("dataMap", "dataMap", dataMap)