Skip to content

Commit 69318c7

Browse files
committed
Allow cancellation of the data upload request when using Venafi Cloud with private key authentication
Signed-off-by: Richard Wall <[email protected]>
1 parent 98afe3b commit 69318c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/client_venafi_cloud.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (c *VenafiCloudClient) Post(ctx context.Context, path string, body io.Reade
265265
return nil, err
266266
}
267267

268-
req, err := http.NewRequest(http.MethodPost, fullURL(c.baseURL, path), body)
268+
req, err := http.NewRequestWithContext(ctx, http.MethodPost, fullURL(c.baseURL, path), body)
269269
if err != nil {
270270
return nil, err
271271
}

0 commit comments

Comments
 (0)