Skip to content

Commit

Permalink
Update example_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed May 17, 2023
1 parent 336108b commit 59da760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .web/docs/guide/api/goexample/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (

// These are the headers you need to set to authenticate with the Connect API.
endpointHeader = "Connect-Endpoint"
tokenHeader = "Connect-Token"
tokenHeader = "Authorization"
)

// ExampleClient_ListEndpoints shows how to list endpoints you have access to.
Expand All @@ -31,7 +31,7 @@ func ExampleClient_ListEndpoints() {
ctx := context.TODO()
req := connect.NewRequest(&connectpb.ListEndpointsRequest{})
req.Header().Set(endpointHeader, "my-endpoint")
req.Header().Set(tokenHeader, "my-token")
req.Header().Set(tokenHeader, "Bearer"+"my-token")

// Fetch all endpoints until the server returns an empty page.
for {
Expand Down

0 comments on commit 59da760

Please sign in to comment.