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"
|
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var logLevel slog.LevelVar
|
||||||
client = spinhttp.NewClient()
|
|
||||||
logLevel slog.LevelVar
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// call the Handle function
|
// call the Handle function
|
||||||
|
@ -60,7 +57,8 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.Info("Forwarding request", slog.String("url", req.URL.String()))
|
logger.Info("Forwarding request", slog.String("url", req.URL.String()))
|
||||||
resp, err := client.Do(req)
|
|
||||||
|
resp, err := spinhttp.Send(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue