mirror of
https://github.com/curl/curl.git
synced 2026-08-26 07:23:31 +03:00
url: rename Curl_init_do => Curl_init_transfer
And correct some comments Closes #22474
This commit is contained in:
parent
a368fbe968
commit
7acf124614
5 changed files with 19 additions and 22 deletions
|
|
@ -92,8 +92,8 @@ static CURLcode test_unit1620(const char *arg)
|
|||
fail_unless(result == CURLE_URL_MALFORMAT,
|
||||
"Curl_connect() failed to return CURLE_URL_MALFORMAT");
|
||||
|
||||
result = Curl_init_do(empty, empty->conn);
|
||||
fail_unless(result == CURLE_OK, "Curl_init_do() failed");
|
||||
result = Curl_init_transfer(empty, empty->conn);
|
||||
fail_unless(result == CURLE_OK, "Curl_init_transfer() failed");
|
||||
|
||||
result = curl_easy_setopt((CURL *)empty, CURLOPT_NOBODY, 1L);
|
||||
fail_unless(result == CURLE_OK, "curl_easy_setopt(CURLOPT_NOBODY) failed");
|
||||
|
|
@ -103,8 +103,8 @@ static CURLcode test_unit1620(const char *arg)
|
|||
Curl_close(&empty);
|
||||
abort_unless(dupe, "curl_easy_duphandle() failed");
|
||||
|
||||
result = Curl_init_do(dupe, NULL);
|
||||
fail_unless(result == CURLE_OK, "Curl_init_do() on duplicate failed");
|
||||
result = Curl_init_transfer(dupe, NULL);
|
||||
fail_unless(result == CURLE_OK, "Curl_init_transfer() on duplicate failed");
|
||||
fail_unless(dupe->req.no_body, "duplicate handle should keep no_body");
|
||||
fail_unless(dupe->state.httpreq == HTTPREQ_HEAD,
|
||||
"duplicate handle should use HTTPREQ_HEAD");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue