From fb3180a02463ac96ef6000b52b74843abee49387 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Fri, 25 Aug 2023 19:42:38 +1000 Subject: [PATCH] misc: spellfixes Closes #11730 --- lib/curl_trc.h | 2 +- lib/http1.c | 2 +- lib/http2.c | 2 +- tests/check-translatable-options.pl | 2 +- tests/http/test_02_download.py | 4 ++-- tests/http/test_14_auth.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/curl_trc.h b/lib/curl_trc.h index b9ac4f127..84b5471d8 100644 --- a/lib/curl_trc.h +++ b/lib/curl_trc.h @@ -38,7 +38,7 @@ CURLcode Curl_trc_init(void); * * Configuration format supported: * - comma-separated list of component names to enable logging on. - * E.g. 'http/2,ssl'. Unkown names are ignored. Names are compared + * E.g. 'http/2,ssl'. Unknown names are ignored. Names are compared * case-insensitive. * - component 'all' applies to all known log components * - prefixing a component with '+' or '-' will en-/disable logging for diff --git a/lib/http1.c b/lib/http1.c index a442d3eaa..1ca7d41e8 100644 --- a/lib/http1.c +++ b/lib/http1.c @@ -163,7 +163,7 @@ static CURLcode start_req(struct h1_req_parser *parser, break; } } - /* no SPACE found or empty TARGET or empy HTTP_VERSION */ + /* no SPACE found or empty TARGET or empty HTTP_VERSION */ if(!target_len || !hv_len) goto out; diff --git a/lib/http2.c b/lib/http2.c index d1921a4a6..56d5d31fe 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -69,7 +69,7 @@ #define H2_CHUNK_SIZE (16 * 1024) /* this is how much we want "in flight" for a stream */ #define H2_STREAM_WINDOW_SIZE (10 * 1024 * 1024) -/* on receving from TLS, we prep for holding a full stream window */ +/* on receiving from TLS, we prep for holding a full stream window */ #define H2_NW_RECV_CHUNKS (H2_STREAM_WINDOW_SIZE / H2_CHUNK_SIZE) /* on send into TLS, we just want to accumulate small frames */ #define H2_NW_SEND_CHUNKS 1 diff --git a/tests/check-translatable-options.pl b/tests/check-translatable-options.pl index 3830e5d6e..cd6696360 100755 --- a/tests/check-translatable-options.pl +++ b/tests/check-translatable-options.pl @@ -109,7 +109,7 @@ sub scan_wrapper_for_strings { return @stringopts; } -# Get tranlatable string options from header file. +# Get translatable string options from header file. my @stringdefs = scan_header("$incdir/curl.h"); # Get translated string options. diff --git a/tests/http/test_02_download.py b/tests/http/test_02_download.py index 42854f8bd..555f43a54 100644 --- a/tests/http/test_02_download.py +++ b/tests/http/test_02_download.py @@ -352,10 +352,10 @@ class TestDownload: assert r.duration > timedelta(seconds=4), \ f'rate limited transfer should take more than 4s, not {r.duration}' - # make extreme paralllel h2 upgrades, check invalid conn reuse + # make extreme parallel h2 upgrades, check invalid conn reuse # before protocol switch has happened def test_02_25_h2_upgrade_x(self, env: Env, httpd, repeat): - # not locally reproducable timeouts with certain SSL libs + # not locally reproducible timeouts with certain SSL libs # Since this test is about connection reuse handling, we skip # it on these builds. Although we would certainly like to understand # why this happens. diff --git a/tests/http/test_14_auth.py b/tests/http/test_14_auth.py index cbd2de70b..a2fb48ba6 100644 --- a/tests/http/test_14_auth.py +++ b/tests/http/test_14_auth.py @@ -105,7 +105,7 @@ class TestAuth: if proto == 'h3' and env.curl_uses_lib('quiche'): # See pytest.skip("quiche has problems with large requests") - # just large enought that nghttp2 will submit + # just large enough that nghttp2 will submit password = 'x' * (47 * 1024) fdata = os.path.join(env.gen_dir, 'data-10m') curl = CurlClient(env=env)