fix service-bindings example

This commit is contained in:
syumai 2024-04-16 23:27:40 +09:00
parent ccc1c0f061
commit c5def28fb1

View File

@ -16,7 +16,7 @@ func main() {
bind := cloudflare.GetBinding(ctx, "hello") bind := cloudflare.GetBinding(ctx, "hello")
fc := fetch.NewClient(fetch.WithBinding(bind)) fc := fetch.NewClient(fetch.WithBinding(bind))
hc := fc.HTTPClient() hc := fc.HTTPClient(fetch.RedirectModeFollow)
res, err := hc.Do(req) res, err := hc.Do(req)
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)