Skip to content

Commit

Permalink
Switch file upload to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanCoding committed Nov 22, 2024
1 parent a4657d7 commit a246793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golang/vaas/v3/pkg/vaas/vaas.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (v *vaas) ForFile(ctx context.Context, filePath string) (msg.VaasVerdict, e
// TODO: return the parsed body (TBD how API will look)
func (v *vaas) upload(ctx context.Context, file io.Reader, contentLength int64) (string, error) {
uploadUrl := v.vaasURL.JoinPath("files").String()
req, err := v.newAuthenticatedRequest(ctx, http.MethodPut, uploadUrl, file)
req, err := v.newAuthenticatedRequest(ctx, http.MethodPost, uploadUrl, file)
if err != nil {
return "", err
}
Expand Down

0 comments on commit a246793

Please sign in to comment.