This is an automated email from the ASF dual-hosted git repository.
shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 2a9a522 test: fix grammar (#3584)
2a9a522 is described below
commit 2a9a52220f6be69c1883e1bf59df0436ac86bda3
Author: John Bampton <[email protected]>
AuthorDate: Thu Feb 18 14:33:20 2021 +1000
test: fix grammar (#3584)
---
README.md | 2 +-
apisix/plugins/error-log-logger.lua | 2 +-
apisix/plugins/sls-logger.lua | 2 +-
t/plugin/ip-restriction.t | 6 +++---
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 48d7ee3..8653895 100644
--- a/README.md
+++ b/README.md
@@ -227,7 +227,7 @@ There are several ways to install the Apache Release
version of APISIX:
$ sudo docker build -f alpine-dev/Dockerfile .
```
-2. Getting start
+2. Getting started
The getting started guide is a great way to learn the basics of APISIX,
just follow the steps in [Getting Started](doc/getting-started.md).
diff --git a/apisix/plugins/error-log-logger.lua
b/apisix/plugins/error-log-logger.lua
index af5f969..9e5c746 100644
--- a/apisix/plugins/error-log-logger.lua
+++ b/apisix/plugins/error-log-logger.lua
@@ -104,7 +104,7 @@ local function send_to_server(data)
ok, err = sock:sslhandshake(false, config.tls_server_name, false)
if not ok then
sock:close()
- return false, "failed to to perform TLS handshake to TCP server:
host["
+ return false, "failed to perform TLS handshake to TCP server:
host["
.. config.host .. "] port[" .. tostring(config.port) .. "]
err: " .. err
end
end
diff --git a/apisix/plugins/sls-logger.lua b/apisix/plugins/sls-logger.lua
index bfc17d6..daeaebb 100644
--- a/apisix/plugins/sls-logger.lua
+++ b/apisix/plugins/sls-logger.lua
@@ -78,7 +78,7 @@ local function send_tcp_data(route_conf, log_message)
ok, err = sock:sslhandshake(true, nil, false)
if not ok then
- return false, "failed to to perform TLS handshake to TCP server: host["
+ return false, "failed to perform TLS handshake to TCP server: host["
.. route_conf.host .. "] port[" ..
tostring(route_conf.port)
.. "] err: " .. err
end
diff --git a/t/plugin/ip-restriction.t b/t/plugin/ip-restriction.t
index 03653ed..ce1e94e 100644
--- a/t/plugin/ip-restriction.t
+++ b/t/plugin/ip-restriction.t
@@ -276,7 +276,7 @@ ip-restriction exits with http status code 403
-=== TEST 11: hit route and IPv6 not not in the whitelist
+=== TEST 11: hit route and IPv6 not in the whitelist
--- http_config
set_real_ip_from 127.0.0.1;
real_ip_header X-Forwarded-For;
@@ -360,7 +360,7 @@ GET /hello
-=== TEST 15: hit route and ip not not in the blacklist
+=== TEST 15: hit route and ip not in the blacklist
--- http_config
set_real_ip_from 127.0.0.1;
real_ip_header X-Forwarded-For;
@@ -375,7 +375,7 @@ hello world
-=== TEST 16: hit route and IPv6 not not in the blacklist
+=== TEST 16: hit route and IPv6 not in the blacklist
--- http_config
set_real_ip_from 127.0.0.1;
real_ip_header X-Forwarded-For;