mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +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")
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user