From 2aaf0115837918474f33ee090134a5309c1f485f Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov <sergeyb@tarantool.org> Date: Thu, 2 Nov 2023 18:07:08 +0300 Subject: [PATCH] httpc: fix typos NO_CHANGELOG=fixed typos NO_DOC=fixed typos NO_TEST=fixed typos --- src/curl.c | 2 +- src/httpc.h | 4 ++-- src/lua/httpc.lua | 2 +- test/app-luatest/http_client_test.lua | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/curl.c b/src/curl.c index e2ff232dd2..8f2f0fb491 100644 --- a/src/curl.c +++ b/src/curl.c @@ -69,7 +69,7 @@ curl_multi_process(CURLM *multi, curl_socket_t sockfd, int events) } /* - * Check for resuls + * Check for results. */ CURLMsg *msg; diff --git a/src/httpc.h b/src/httpc.h index 72e4edb649..fa2c3389f9 100644 --- a/src/httpc.h +++ b/src/httpc.h @@ -60,7 +60,7 @@ struct httpc_stat { * HTTP Client Environment */ struct httpc_env { - /** Curl enviroment. */ + /** Curl environment. */ struct curl_env curl_env; /** Memory pool for requests */ struct mempool req_pool; @@ -99,7 +99,7 @@ struct httpc_request { struct curl_slist *headers; /** Buffer for data send. */ struct ibuf send; - /** curl resuest. */ + /** curl request. */ struct curl_request curl_request; /** HTTP status code */ int status; diff --git a/src/lua/httpc.lua b/src/lua/httpc.lua index a8f058bf6a..d9dba20883 100644 --- a/src/lua/httpc.lua +++ b/src/lua/httpc.lua @@ -411,7 +411,7 @@ local function io_read(self, opts, timeout) end if chunk < 0 then - error('io:read(): chunk can not be negative') + error('io:read(): chunk size can not be negative') end chunk = math.min(chunk, IO_CHUNK_DEFAULT) diff --git a/test/app-luatest/http_client_test.lua b/test/app-luatest/http_client_test.lua index d57d379088..a05ba11d82 100644 --- a/test/app-luatest/http_client_test.lua +++ b/test/app-luatest/http_client_test.lua @@ -1112,7 +1112,7 @@ g.test_http_client_io_read_invalid_arg = function(cg) local ok, err = pcall(io.read, io, -1) t.assert_not(ok, 'an error expected', 'first arg error') - t.assert_str_contains(err, 'chunk can not be negative') + t.assert_str_contains(err, 'chunk size can not be negative') local ok, err = pcall(io.read, io, function() end) t.assert_not(ok, 'an error expected') @@ -1120,7 +1120,7 @@ g.test_http_client_io_read_invalid_arg = function(cg) local ok, err = pcall(io.read, io, {chunk = -1}) t.assert_not(ok, 'an error expected') - t.assert_str_contains(err, 'chunk can not be negative') + t.assert_str_contains(err, 'chunk size can not be negative') io:finish() end -- GitLab