mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 09:27:08 +00:00
fix service-bindings example
This commit is contained in:
parent
ccc1c0f061
commit
c5def28fb1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user