Fix preview or viewing of shared animated GIFs (#6386)
* Fix preview or viewing of shared animated GIFs --------- Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
This commit is contained in:
co-authored by
Roman Perekhod
parent
34909ec1fd
commit
e57e6046d3
@@ -463,7 +463,7 @@ func (g Webdav) sendThumbnailResponse(rsp *thumbnailssvc.GetThumbnailResponse, w
|
||||
}
|
||||
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Header().Set("Content-Type", rsp.Mimetype)
|
||||
w.Header().Set("Content-Type", dlRsp.Header.Get("Content-Type"))
|
||||
_, err = io.Copy(w, dlRsp.Body)
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("failed to write thumbnail to response writer")
|
||||
|
||||
Reference in New Issue
Block a user