]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
misc: fix typos in docs and comments
authora1346054 <36859588+a1346054@users.noreply.github.com>
Sun, 19 Sep 2021 13:25:48 +0000 (13:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Sep 2021 10:57:55 +0000 (12:57 +0200)
No user facing output from curl/libcurl is changed by this, just
comments.

Closes #7747

docs/KNOWN_BUGS
docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.3
lib/curl_sasl.c
lib/http_aws_sigv4.c
lib/http_proxy.c
src/tool_getparam.c

index ed944fb3e2584d481974b4d44c4c9d8273d40a6a..b4ad169bdc52dff1aee14f11980275cde8043a55 100644 (file)
@@ -1018,7 +1018,7 @@ problems may have been fixed or changed somewhat since this was written!
 
 15.4 build docs/curl.1
 
- The cmake build doesn't create the docs/curl.1 file and therefor must rely on
+ The cmake build doesn't create the docs/curl.1 file and therefore must rely on
  it being there already. This makes the --manual option not work and test
  cases like 1139 can't function.
 
index 8a06d6c5b7e8db2f9e703d4cc2d09ea9c1be5a7f..d061d784687502e42735aff48165278452217479 100644 (file)
@@ -22,7 +22,7 @@
 .\"
 .TH CURLOPT_SSL_ENABLE_ALPN 3 "19 Jun 2014" "libcurl 7.37.0" "curl_easy_setopt options"
 .SH NAME
-CURLOPT_SSL_ENABLE_ALPN \- Application Layer Protocol Negotation
+CURLOPT_SSL_ENABLE_ALPN \- Application Layer Protocol Negotiation
 .SH SYNOPSIS
 #include <curl/curl.h>
 
index 4a2488720e6069ef7c13c51c7f033582fff9e61a..a5ee8bbe269c346c9cdcc2042fafc9c9aaa59781 100644 (file)
@@ -272,7 +272,7 @@ static CURLcode build_message(struct Curl_easy *data, struct bufref *msg)
   char *base64;
   size_t base64len;
 
-  if(!Curl_bufref_ptr(msg))             /* Empty mesage. */
+  if(!Curl_bufref_ptr(msg))             /* Empty message. */
     Curl_bufref_set(msg, "", 0, NULL);
   else if(!Curl_bufref_len(msg))        /* Explicit empty response. */
     Curl_bufref_set(msg, "=", 1, NULL);
index 02663abd63db66446efa0bf1edc72ba47e586045..8b87e1f08ddc75ddcbb33fb458d6c580ee27837e 100644 (file)
@@ -321,7 +321,7 @@ CURLcode Curl_output_aws_sigv4(struct Curl_easy *data, bool proxy)
 
   /*
    * Google allow to use rsa key instead of HMAC, so this code might change
-   * In the furure, but for now we support only HMAC version
+   * In the future, but for now we support only HMAC version
    */
   str_to_sign = curl_maprintf("%s4-HMAC-SHA256\n" /* Algorithm */
                               "%s\n" /* RequestDateTime */
index 58489abec1a0c284762cf72f6409a54699c79013..ef403d7f45ef872b6998bd6ce99dfff0cd84ff44 100644 (file)
@@ -207,7 +207,7 @@ static void connect_done(struct Curl_easy *data)
     Curl_dyn_free(&s->rcvbuf);
     Curl_dyn_free(&s->req);
 
-    /* retore the protocol pointer */
+    /* restore the protocol pointer */
     data->req.p.http = s->prot_save;
     s->prot_save = NULL;
     infof(data, "CONNECT phase completed!");
index 1e1827fc1391dc181972ef75301c6e22760c3b5e..73ba8f5374f166959c4554ece43f4d282b7538a7 100644 (file)
@@ -1430,7 +1430,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
           char *enc = curl_easy_escape(NULL, postdata, (int)size);
           Curl_safefree(postdata); /* no matter if it worked or not */
           if(enc) {
-            /* replace (in-place) '%20' by '+' acording to RFC1866 */
+            /* replace (in-place) '%20' by '+' according to RFC1866 */
             size_t enclen = replace_url_encoded_space_by_plus(enc);
             /* now make a string with the name from above and append the
                encoded string */