Commit 80079f5
committed
Handle empty response data correctly
curl will return -1.0 for CURLINFO_CONTENT_LENGTH_DOWNLOAD since 7.19.4
if not known (means not specified by the server response).
When handling data for empty responses, this will cause us to compare
0.0 (CURLINFO_SIZE_DOWNLOAD) with -1.0
(CURLINFO_CONTENT_LENGTH_DOWNLOAD) and thus error out with SSL error 0
then (which means normal close).
We therefore now explicitly allow to download 0 bytes, when no size has
been indicated.1 parent 60ffe2d commit 80079f5
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
0 commit comments