CoreELEC 21-omega CURL bug/regression breakes WebDAV remote storage

This commit fixes the issue and should be included in 21.1 release.