summaryrefslogtreecommitdiff
path: root/workhorse/internal/upload/uploads.go
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-13 12:09:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-13 12:09:26 +0000
commit9fdb3dbd6bacb125d40290aac8409da2f9fe19fc (patch)
tree532a0cfc06fa0f4c1d718a33804e6bbf2b650e70 /workhorse/internal/upload/uploads.go
parent2d8c28f1d32709280506507f3b6e6d2da7440da9 (diff)
downloadgitlab-ce-9fdb3dbd6bacb125d40290aac8409da2f9fe19fc.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/internal/upload/uploads.go')
-rw-r--r--workhorse/internal/upload/uploads.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/workhorse/internal/upload/uploads.go b/workhorse/internal/upload/uploads.go
index f214e1ac297..32e51fea9e5 100644
--- a/workhorse/internal/upload/uploads.go
+++ b/workhorse/internal/upload/uploads.go
@@ -51,7 +51,7 @@ func interceptMultipartFiles(w http.ResponseWriter, r *http.Request, h http.Hand
err := rewriteFormFilesFromMultipart(r, writer, filter, fa, p)
if err != nil {
switch err {
- case ErrInjectedClientParam:
+ case ErrInjectedClientParam, http.ErrMissingBoundary:
helper.CaptureAndFail(w, r, err, "Bad Request", http.StatusBadRequest)
case ErrTooManyFilesUploaded:
helper.CaptureAndFail(w, r, err, err.Error(), http.StatusBadRequest)