mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-12-05 05:43:36 -05:00
fix(webdav): bound a kept source only by the cache's own limit
This commit is contained in:
1 parent
253b2d4d52
commit
4443a8f9fc
1 file changed
-3
@@ -600,9 +600,6 @@ func (w *ThumbnailWorkflow) rememberSource(key string, data []byte) {
|
||||
if w.cache == nil || len(data) > maxCachedSourceBytes {
|
||||
return
|
||||
}
|
||||
if w.maxInputSize > 0 && uint64(len(data)) > w.maxInputSize {
|
||||
return
|
||||
}
|
||||
_ = w.cache.Put(key, data)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user