fix(blob-proxy) build issue
Some checks failed
functions / image_refs (push) Failing after 2s
functions / deploy (push) Has been skipped
functions / build (blob-proxy) (push) Successful in 1m14s
functions / build (comics) (push) Successful in 1m41s

This commit is contained in:
Peter 2025-01-21 17:52:15 +01:00
parent fa9d13d45d
commit 11f623723a
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -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