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