Skip to content

Commit

Permalink
doc: fixed some typos detected by misspell.
Browse files Browse the repository at this point in the history
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
  • Loading branch information
spacewander authored and agentzh committed Jun 14, 2017
1 parent 69d9955 commit 2360565
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,12 @@ It is therefore *highly* recommended to always declare such within an appropriat

-- Avoid
foo = 123
-- Recomended
-- Recommended
local foo = 123

-- Avoid
function foo() return 123 end
-- Recomended
-- Recommended
local function foo() return 123 end
```

Expand Down Expand Up @@ -914,7 +914,7 @@ servers in Lua. For example,
* add `ignore_resp_headers`, `ignore_resp_body`, and `ignore_resp` options to [ngx.location.capture](#ngxlocationcapture) and [ngx.location.capture_multi](#ngxlocationcapture_multi) methods, to allow micro performance tuning on the user side.
* add automatic Lua code time slicing support by yielding and resuming the Lua VM actively via Lua's debug hooks.
* add `stat` mode similar to [mod_lua](https://httpd.apache.org/docs/trunk/mod/mod_lua.html).
* cosocket: add client SSL certificiate support.
* cosocket: add client SSL certificate support.

[Back to TOC](#table-of-contents)

Expand Down
6 changes: 3 additions & 3 deletions doc/HttpLuaModule.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,12 @@ It is therefore *highly* recommended to always declare such within an appropriat
<geshi lang="lua">
-- Avoid
foo = 123
-- Recomended
-- Recommended
local foo = 123

-- Avoid
function foo() return 123 end
-- Recomended
-- Recommended
local function foo() return 123 end
</geshi>

Expand Down Expand Up @@ -745,7 +745,7 @@ servers in Lua. For example,
* add <code>ignore_resp_headers</code>, <code>ignore_resp_body</code>, and <code>ignore_resp</code> options to [[#ngx.location.capture|ngx.location.capture]] and [[#ngx.location.capture_multi|ngx.location.capture_multi]] methods, to allow micro performance tuning on the user side.
* add automatic Lua code time slicing support by yielding and resuming the Lua VM actively via Lua's debug hooks.
* add <code>stat</code> mode similar to [https://httpd.apache.org/docs/trunk/mod/mod_lua.html mod_lua].
* cosocket: add client SSL certificiate support.
* cosocket: add client SSL certificate support.
= Changes =
Expand Down
2 changes: 1 addition & 1 deletion src/ngx_http_lua_ssl_session_fetchby.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ ngx_http_lua_ssl_sess_fetch_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,

dd("enter");

/* must specifiy a content handler */
/* must specify a content handler */
if (cmd->post == NULL) {
return NGX_CONF_ERROR;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ngx_http_lua_ssl_session_storeby.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ngx_http_lua_ssl_sess_store_by_lua(ngx_conf_t *cf, ngx_command_t *cmd,

dd("enter");

/* must specifiy a content handler */
/* must specify a content handler */
if (cmd->post == NULL) {
return NGX_CONF_ERROR;
}
Expand Down Expand Up @@ -386,7 +386,7 @@ ngx_http_lua_ssl_sess_store_by_chunk(lua_State *L, ngx_http_request_t *r)
dd("rc == %d", (int) rc);

if (rc != 0) {
/* error occured when running loaded code */
/* error occurred when running loaded code */
err_msg = (u_char *) lua_tolstring(L, -1, &len);

if (err_msg == NULL) {
Expand Down
2 changes: 1 addition & 1 deletion t/139-ssl-cert-by.t
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ uthread: done



=== TEST 17: simple logging - use ssl_certificiate_by_lua* on the http {} level
=== TEST 17: simple logging - use ssl_certificate_by_lua* on the http {} level
GitHub openresty/lua-resty-core#42
--- http_config
ssl_certificate_by_lua_block { print("ssl cert by lua is running!") }
Expand Down
4 changes: 2 additions & 2 deletions t/140-ssl-c-api.t
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ failed to parse PEM priv key: PEM_read_bio_PrivateKey() failed
while true do
local line, err = sock:receive()
if not line then
-- ngx.say("failed to recieve response status line: ", err)
-- ngx.say("failed to receive response status line: ", err)
break
end

Expand Down Expand Up @@ -776,7 +776,7 @@ lua ssl server name: "test.com"
while true do
local line, err = sock:receive()
if not line then
-- ngx.say("failed to recieve response status line: ", err)
-- ngx.say("failed to receive response status line: ", err)
break
end

Expand Down

0 comments on commit 2360565

Please sign in to comment.