diff --git a/src/curl.c b/src/curl.c index e2ff232dd28a9e8b5ea0b361dc6f266152702bea..8f2f0fb49166348a6bd1fc3c4fd8fc36b1e4c928 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 72e4edb649a09fb07c8803c4885d9ac13a09254f..fa2c3389f96337713df57b09bd0b89b4d136d479 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 a8f058bf6acb41ec0df033d9c96cec42845b90a7..d9dba20883c8bd37bcc71e08d92f6656ad16d7be 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 d57d379088806284c1b0b9d870c7bc2e8c0bbeeb..a05ba11d82056f6ce507ce95a96fdcf9f81d610c 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