Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Commit80079f5
committed
Handle empty response data correctly
curl will return -1.0 for CURLINFO_CONTENT_LENGTH_DOWNLOAD since 7.19.4if not known (means not specified by the server response).When handling data for empty responses, this will cause us to compare0.0 (CURLINFO_SIZE_DOWNLOAD) with -1.0(CURLINFO_CONTENT_LENGTH_DOWNLOAD) and thus error out with SSL error 0then (which means normal close).We therefore now explicitly allow to download 0 bytes, when no size hasbeen indicated.1 parent60ffe2d commit80079f5
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
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
Comments
(0)