1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-24 13:43:12 +02:00

Preserve old handleServeFile endpoint behavior after refactor (#3892)

This commit is contained in:
Miguel de la Cruz 2022-10-03 07:15:04 +02:00 committed by GitHub
parent 61952f23ad
commit 4e8a3f8232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ func (a *API) handleServeFile(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", contentType)
fileInfo, err := a.app.GetFileInfo(filename)
if err != nil {
if err != nil && !model.IsErrNotFound(err) {
a.errorResponse(w, r, err)
return
}