Found using codespell 2.2.1.
Also delete the redundant protocol designator from an archive.org URL.
Reviewed-by: Daniel Stenberg
Closes #9403
o hostip: resolve *.localhost to 127.0.0.1/::1 [127]
o HTTP3.md: update to msh3 v0.4.0 [126]
o http: typecast the httpreq assignment to avoid icc compiler warning [76]
- o http_aws_sigv4.c: remove two unusued includes [36]
+ o http_aws_sigv4.c: remove two unused includes [36]
o http_chunks: remove an assign + typecast [82]
o hyper: customize test1274 to how hyper unfolds headers [131]
o hyper: enable obs-folded multiline headers [101]
o sendf: fix paused header writes since after the header API [89]
o sendf: make Curl_debug a void function [81]
o sendf: skip storing HTTP headers if HTTP disabled [73]
- o sendf: store the header type in an usigned char to avoid icc warnings [79]
+ o sendf: store the header type in an unsigned char to avoid icc warnings [79]
o splay: avoid using -1 in unsigned variable [78]
o test3026: add support for Windows using native Win32 threads [65]
o test3026: require 'threadsafe' [56]
[SP-Forth](https://sourceforge.net/p/spf/spf/ci/master/tree/devel/~ac/lib/lin/curl/) Written by Andrey Cherezov
-[SPL](https://web.archive.org/web/20210203022158/http://www.clifford.at/spl/spldoc/curl.html) Written by Clifford Wolf
+[SPL](https://web.archive.org/web/20210203022158/www.clifford.at/spl/spldoc/curl.html) Written by Clifford Wolf
[Tcl](https://web.archive.org/web/20160826011806/mirror.yellow5.com/tclcurl/) Tclcurl by Andrés García
/*
* Name: curl_multi_init()
*
- * Desc: inititalize multi-style curl usage
+ * Desc: initialize multi-style curl usage
*
* Returns: a new CURLM handle to use in all 'curl_multi' functions.
*/
}
-/* return TRUE if 'part' is a case insentive tail of 'full' */
+/* return TRUE if 'part' is a case insensitive tail of 'full' */
static bool tailmatch(const char *full, const char *part)
{
size_t plen = strlen(part);
*/
static bool imap_is_bchar(char ch)
{
- /* Peforming the alnum check with this macro is faster because of ASCII
- artihmetic */
+ /* Performing the alnum check with this macro is faster because of ASCII
+ arithmetic */
if(ISALNUM(ch))
return true;
Curl_detach_connection(data);
if(data->set.connect_only && !data->multi_easy) {
- /* This removes a handle that was part the multi inteface that used
+ /* This removes a handle that was part the multi interface that used
CONNECT_ONLY, that connection is now left alive but since this handle
has bits.close set nothing can use that transfer anymore and it is
forbidden from reuse. And this easy handle cannot find the connection
see https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1 */
if(!data->user != !needle->user)
return FALSE;
- /* curl_strequal does a case insentive comparison, so do not use it here! */
+ /* curl_strequal does a case insensitive comparison,
+ so do not use it here! */
if(data->user &&
needle->user &&
strcmp(data->user, needle->user) != 0)
return FALSE;
if(!data->passwd != !needle->passwd)
return FALSE;
- /* curl_strequal does a case insentive comparison, so do not use it here! */
+ /* curl_strequal does a case insensitive comparison,
+ so do not use it here! */
if(data->passwd &&
needle->passwd &&
strcmp(data->passwd, needle->passwd) != 0)
if(appendquery) {
/* Append the string onto the old query. Add a '&' separator if none is
- present at the end of the exsting query already */
+ present at the end of the existing query already */
size_t querylen = u->query ? strlen(u->query) : 0;
bool addamperand = querylen && (u->query[querylen -1] != '&');
if(querylen) {
CURLcode Curl_auth_create_spnego_message(struct negotiatedata *nego,
char **outptr, size_t *outlen);
-/* This is used to clean up the SPNEGO specifiec data */
+/* This is used to clean up the SPNEGO specific data */
void Curl_auth_cleanup_spnego(struct negotiatedata *nego);
#endif /* USE_SPNEGO */
socklen_t addrlen)
{
struct quicsocket *qs = &conn->hequic[sockindex];
- bool unsecure = !conn->ssl_config.verifypeer;
+ bool insecure = !conn->ssl_config.verifypeer;
memset(qs, 0, sizeof(*qs));
(void)sockfd;
qs->conn = MsH3ConnectionOpen(qs->api,
conn->host.name,
(uint16_t)conn->remote_port,
- unsecure);
+ insecure);
if(!qs->conn) {
failf(data, "can't create msh3 connection");
if(qs->api) {
int crypto_settings_idx = 0;
- /* If TLS 1.3 ciphers are explictly listed, then
+ /* If TLS 1.3 ciphers are explicitly listed, then
* disable all the ciphers and re-enable which
* ciphers the user has provided.
*/
blocked_gcm_modes[0].MaximumLength = sizeof(BCRYPT_CHAIN_MODE_GCM);
blocked_gcm_modes[0].Buffer = (PWSTR)BCRYPT_CHAIN_MODE_GCM;
- /* if only one is disabled, then explictly disable the
+ /* if only one is disabled, then explicitly disable the
digest cipher suite (sha384 or sha256) */
if(disable_aes_gcm_sha384 != disable_aes_gcm_sha256) {
crypto_settings[crypto_settings_idx].eAlgorithmUsage =
addcflags=""
if test "x$OPT_GNUTLS" = "xyes"; then
- dnl this is with no partiular path given
+ dnl this is with no particular path given
CURL_CHECK_PKGCONFIG(gnutls)
if test "$PKGCONFIG" != "no" ; then
m4_define([_XC_CHECK_LT_BUILD_WITH_PIC],
[dnl
#
-# Find out whether libtool libraries would be built wit PIC
+# Find out whether libtool libraries would be built with PIC
#
case "x$pic_mode" in @%:@ ((((
dnl the user has already set it with a non-empty value.
dnl
dnl This path separator is the symbol used to separate
-dnl or diferentiate paths inside the 'PATH' environment
+dnl or differentiate paths inside the 'PATH' environment
dnl variable.
dnl
dnl Non-empty user provided 'PATH_SEPARATOR' always
dnl the user has already set it with a non-empty value.
dnl
dnl This path separator is the symbol used to separate
-dnl or diferentiate paths inside the 'PATH' environment
+dnl or differentiate paths inside the 'PATH' environment
dnl variable.
dnl
dnl Non-empty user provided 'PATH_SEPARATOR' always
http
</server>
<name>
-Appened dash if -r range specified without one
+Append dash if -r range specified without one
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -r 4
http
</server>
<name>
-verify -w local/remote port+ip after connecton re-use
+verify -w local/remote port+ip after connection re-use
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w 'local port == %{local_port}\nlocal ip == %{local_ip}\nremote_ip == %{remote_ip}\nremote_port == %{remote_port}\n'
curl_easy_setopt(curl, CURLOPT_CURLU, curlu);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error_buffer);
curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
- /* set a port number that makes this reqeuest fail */
+ /* set a port number that makes this request fail */
curl_easy_setopt(curl, CURLOPT_PORT, 1L);
curl_code = curl_easy_perform(curl);
if(!curl_code)
struct demo victim;
DOHcode d;
- victim.canary1 = 87; /* magic numbers, arbritrarily picked */
+ victim.canary1 = 87; /* magic numbers, arbitrarily picked */
victim.canary2 = 35;
victim.canary3 = 41;
d = doh_encode(name, DNS_TYPE_A, victim.dohbuffer,