From c5def28fb1bec46a698dbd55c888c930dc8d4449 Mon Sep 17 00:00:00 2001 From: syumai Date: Tue, 16 Apr 2024 23:27:40 +0900 Subject: [PATCH] fix service-bindings example --- _examples/service-bindings/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_examples/service-bindings/main.go b/_examples/service-bindings/main.go index 81e1614..ab9a23a 100644 --- a/_examples/service-bindings/main.go +++ b/_examples/service-bindings/main.go @@ -16,7 +16,7 @@ func main() { bind := cloudflare.GetBinding(ctx, "hello") fc := fetch.NewClient(fetch.WithBinding(bind)) - hc := fc.HTTPClient() + hc := fc.HTTPClient(fetch.RedirectModeFollow) res, err := hc.Do(req) if err != nil { fmt.Println(err)