Skip to content

Commit 5507b54

Browse files
committed
Use PUT request for uploading to S3, instead of POST
Signed-off-by: Richard Wall <[email protected]>
1 parent 151b95b commit 5507b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/internal/cyberark/dataupload/dataupload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (c *CyberArkClient) PostDataReadingsWithOptions(ctx context.Context, payloa
6767
return fmt.Errorf("while retrieving presigned upload URL: %v", err)
6868
}
6969

70-
req, err := http.NewRequestWithContext(ctx, http.MethodPost, presignedUploadURL, encodedBody)
70+
req, err := http.NewRequestWithContext(ctx, http.MethodPut, presignedUploadURL, encodedBody)
7171
if err != nil {
7272
return err
7373
}

0 commit comments

Comments
 (0)