summaryrefslogtreecommitdiff
path: root/internal/api/client/fileserver/servefile_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/fileserver/servefile_test.go')
-rw-r--r--internal/api/client/fileserver/servefile_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/api/client/fileserver/servefile_test.go b/internal/api/client/fileserver/servefile_test.go
index b93f97606..cf05ebbf1 100644
--- a/internal/api/client/fileserver/servefile_test.go
+++ b/internal/api/client/fileserver/servefile_test.go
@@ -123,6 +123,7 @@ func (suite *ServeFileTestSuite) TestServeOriginalFileSuccessful() {
recorder := httptest.NewRecorder()
ctx, _ := gin.CreateTestContext(recorder)
ctx.Request = httptest.NewRequest(http.MethodGet, targetAttachment.URL, nil)
+ ctx.Request.Header.Set("accept", "*/*")
// normally the router would populate these params from the path values,
// but because we're calling the ServeFile function directly, we need to set them manually.