From a24679320f3bf48c75826b4f6a2cb3e86d109cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=B6hling=2C=20Maximilian?= Date: Fri, 22 Nov 2024 15:20:08 +0100 Subject: [PATCH] Switch file upload to POST --- golang/vaas/v3/pkg/vaas/vaas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golang/vaas/v3/pkg/vaas/vaas.go b/golang/vaas/v3/pkg/vaas/vaas.go index 8173ce18..95cfa869 100644 --- a/golang/vaas/v3/pkg/vaas/vaas.go +++ b/golang/vaas/v3/pkg/vaas/vaas.go @@ -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 }