fix(blob-proxy) build issue
This commit is contained in:
parent
fa9d13d45d
commit
11f623723a
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue