mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
examples: use present tense in comments
remove "will" and some other word fixes Closes #13003
This commit is contained in:
parent
6e494a2390
commit
f540e43b9d
81 changed files with 189 additions and 198 deletions
|
|
@ -112,12 +112,10 @@ static int upload(CURL *curlhandle, const char *remotepath,
|
|||
/* determine the length of the file already written */
|
||||
|
||||
/*
|
||||
* With NOBODY and NOHEADER, libcurl will issue a SIZE
|
||||
* command, but the only way to retrieve the result is
|
||||
* to parse the returned Content-Length header. Thus,
|
||||
* getcontentlengthfunc(). We need discardfunc() above
|
||||
* because HEADER will dump the headers to stdout
|
||||
* without it.
|
||||
* With NOBODY and NOHEADER, libcurl issues a SIZE command, but the only
|
||||
* way to retrieve the result is to parse the returned Content-Length
|
||||
* header. Thus, getcontentlengthfunc(). We need discardfunc() above
|
||||
* because HEADER dumps the headers to stdout without it.
|
||||
*/
|
||||
curl_easy_setopt(curlhandle, CURLOPT_NOBODY, 1L);
|
||||
curl_easy_setopt(curlhandle, CURLOPT_HEADER, 1L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue