mirror of
https://github.com/curl/curl.git
synced 2026-08-12 01:20:52 +03:00
parent
ad9b12d411
commit
01623e26d0
1 changed files with 2 additions and 0 deletions
|
|
@ -2538,6 +2538,8 @@ static CURLcode http_range(struct Curl_easy *data,
|
|||
free(data->state.aptr.rangeline);
|
||||
data->state.aptr.rangeline = curl_maprintf("Range: bytes=%s\r\n",
|
||||
data->state.range);
|
||||
if(!data->state.aptr.rangeline)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
else if((httpreq == HTTPREQ_POST || httpreq == HTTPREQ_PUT) &&
|
||||
!Curl_checkheaders(data, STRCONST("Content-Range"))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue