Skip to content

Commit 6d504e0

Browse files
fix(client): correctly specify Accept header with */* instead of empty
1 parent 48737a3 commit 6d504e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

endpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (r *EndpointService) List(ctx context.Context, query EndpointListParams, op
8787
// Permanently deletes an endpoint. This action cannot be undone.
8888
func (r *EndpointService) Delete(ctx context.Context, endpointID string, opts ...option.RequestOption) (err error) {
8989
opts = slices.Concat(r.Options, opts)
90-
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
90+
opts = append([]option.RequestOption{option.WithHeader("Accept", "*/*")}, opts...)
9191
if endpointID == "" {
9292
err = errors.New("missing required endpointId parameter")
9393
return

0 commit comments

Comments
 (0)