Loading lib/http.c +3 −0 Original line number Diff line number Diff line Loading @@ -669,6 +669,9 @@ CURLcode Curl_http(struct connectdata *conn) */ if((data->set.httpreq == HTTPREQ_GET) && !checkheaders(data, "Range:")) { /* if a line like this was already allocated, free the previous one */ if(conn->allocptr.rangeline) free(conn->allocptr.rangeline); conn->allocptr.rangeline = aprintf("Range: bytes=%s\r\n", conn->range); } else if((data->set.httpreq != HTTPREQ_GET) && Loading Loading
lib/http.c +3 −0 Original line number Diff line number Diff line Loading @@ -669,6 +669,9 @@ CURLcode Curl_http(struct connectdata *conn) */ if((data->set.httpreq == HTTPREQ_GET) && !checkheaders(data, "Range:")) { /* if a line like this was already allocated, free the previous one */ if(conn->allocptr.rangeline) free(conn->allocptr.rangeline); conn->allocptr.rangeline = aprintf("Range: bytes=%s\r\n", conn->range); } else if((data->set.httpreq != HTTPREQ_GET) && Loading