Allow 425 as a valid state, it means the file is still in postprocessing

in ownCloud Infinite Scale, files might be in that state if
postprocessing is still ongoing. All metadata are available anyway
This commit is contained in:
Klaas Freitag 2024-10-14 16:36:10 +02:00
parent 3941e9d329
commit f1b4188b60

View File

@ -96,6 +96,10 @@ func (p *Prop) StatusOK() bool {
if err != nil {
return false
}
// allow status 425 "too early" for files still in postprocessing
if code == 425 {
return true
}
if code >= 200 && code < 300 {
return true
}