From 11f623723a5f80b8912c4a8784df74343ceb0997 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Tue, 21 Jan 2025 17:52:15 +0100 Subject: [PATCH] fix(blob-proxy) build issue --- blob-proxy/main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/blob-proxy/main.go b/blob-proxy/main.go index 8e3fce8..9e9a067 100644 --- a/blob-proxy/main.go +++ b/blob-proxy/main.go @@ -12,10 +12,7 @@ import ( spinhttp "github.com/fermyon/spin/sdk/go/v2/http" ) -var ( - client = spinhttp.NewClient() - logLevel slog.LevelVar -) +var logLevel slog.LevelVar func init() { // call the Handle function @@ -60,7 +57,8 @@ func init() { } logger.Info("Forwarding request", slog.String("url", req.URL.String())) - resp, err := client.Do(req) + + resp, err := spinhttp.Send(req) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return