diff options
Diffstat (limited to 'api4/file.go')
-rw-r--r-- | api4/file.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api4/file.go b/api4/file.go index f73a54fb4..cfb72cdcb 100644 --- a/api4/file.go +++ b/api4/file.go @@ -285,6 +285,7 @@ func getFilePreview(c *Context, w http.ResponseWriter, r *http.Request) { if err != nil { c.Err = err c.Err.StatusCode = http.StatusNotFound + return } defer fileReader.Close() |