Fixed corrupt image download via proxy server 84/284484/2
authorDavid Steele <david.steele@samsung.com>
Thu, 17 Nov 2022 17:27:09 +0000 (17:27 +0000)
committerDavid Steele <david.steele@samsung.com>
Thu, 17 Nov 2022 18:38:32 +0000 (18:38 +0000)
commit4fc95ef34cc24efbe3c1a25300198fe570f61d57
tree98a381d70775e7f9829f98ae9f34fb7f4a3be562
parent7746ce9d93116fd4ee66129a8c09940307538863
Fixed corrupt image download via proxy server

Ensured memory writes fail fast by turning buffering off.
Curl should now always throw a WRITE_ERROR if writing
past the end of the buffer (i.e. the Content-Length was
incorrect).

If this is the case, then the file read is re-tried using
chunking.

Change-Id: Id1d44e05b96583f48b8a89ad6a42d1da0d2b3966
dali/devel-api/adaptor-framework/image-loading.cpp
dali/internal/imaging/common/file-download.cpp