summaryrefslogtreecommitdiff
path: root/workhorse/internal/senddata/contentprocessor/contentprocessor_test.go
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-01 12:11:08 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-01 12:11:08 +0000
commitc14adba064aa86114dc43cae657212a4b19d6189 (patch)
treebf1e9a630b154317aaa7e61e6ba1ee6f7349eca7 /workhorse/internal/senddata/contentprocessor/contentprocessor_test.go
parentc6cc9bc94e23e01a01ed191aba993ccf2b443680 (diff)
downloadgitlab-ce-c14adba064aa86114dc43cae657212a4b19d6189.tar.gz
Add latest changes from gitlab-org/security/gitlab@15-9-stable-ee
Diffstat (limited to 'workhorse/internal/senddata/contentprocessor/contentprocessor_test.go')
-rw-r--r--workhorse/internal/senddata/contentprocessor/contentprocessor_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/workhorse/internal/senddata/contentprocessor/contentprocessor_test.go b/workhorse/internal/senddata/contentprocessor/contentprocessor_test.go
index b04263de6b9..e863935be6f 100644
--- a/workhorse/internal/senddata/contentprocessor/contentprocessor_test.go
+++ b/workhorse/internal/senddata/contentprocessor/contentprocessor_test.go
@@ -51,13 +51,13 @@ func TestSetProperContentTypeAndDisposition(t *testing.T) {
{
desc: "HTML type",
contentType: "text/plain; charset=utf-8",
- contentDisposition: "inline",
+ contentDisposition: "inline; filename=blob",
body: "<html><body>Hello world!</body></html>",
},
{
desc: "Javascript within HTML type",
contentType: "text/plain; charset=utf-8",
- contentDisposition: "inline",
+ contentDisposition: "inline; filename=blob",
body: "<script>alert(\"foo\")</script>",
},
{