Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ cd lua-resty-core
sudo make install LUA_LIB_DIR=/opt/nginx/lualib
```

After that, you need to add the above directory to the LuaJIT search direcotries with `lua_package_path` nginx directive in the http context and stream context.
After that, you need to add the above directory to the LuaJIT search directories with `lua_package_path` nginx directive in the http context and stream context.

```
lua_package_path "/opt/nginx/lualib/?.lua;;";
Expand Down
2 changes: 1 addition & 1 deletion lib/ngx/base64.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ decode\_base64url

Decode `input` using base64url rules. Returns the decoded string.

If the `input` is not a valid base64url encoded string, `decoded `will be `nil`
If the `input` is not a valid base64url encoded string, `decoded` will be `nil`
and `err` will be a string describing the error.

[Back to TOC](#table-of-contents)
Expand Down
2 changes: 1 addition & 1 deletion lib/ngx/pipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Some more examples:
```lua
local proc, err = ngx_pipe.spawn({"ls", "-l"})

local proc, err = ngx_pipe.spawn({"perl", "-e", "print 'hello, wolrd'"})
local proc, err = ngx_pipe.spawn({"perl", "-e", "print 'hello, world'"})
```

If `args` is specified as a string, it will be executed by the operating system
Expand Down
2 changes: 1 addition & 1 deletion lib/ngx/req.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ This method adds the specified header and its value to the current
request. It works similarly as
[ngx.req.set_header](https://github.com/openresty/lua-nginx-module#ngxreqset_header),
with the exception that when the header already exists, the specified value(s)
will be appended instead of overriden.
will be appended instead of overridden.

The first argument `header_name` must be a non-empty string.

Expand Down
2 changes: 1 addition & 1 deletion lib/ngx/resp.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ngx_resp.add_header("Foo", "baz")


ngx_resp.set(531, "user defined error")
--> the response line will be: 531 user defiend error
--> the response line will be: 531 user defined error
```

[Back to TOC](#table-of-contents)
Expand Down
6 changes: 3 additions & 3 deletions lib/ngx/ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ set_der_priv_key

**context:** *ssl_certificate_by_lua**

Sets the DER-formatted prviate key for the current SSL connection.
Sets the DER-formatted private key for the current SSL connection.

Returns `true` on success, or a `nil` value and a string describing the error otherwise.

Expand Down Expand Up @@ -502,7 +502,7 @@ parse_pem_cert

**context:** *any*

Converts the PEM-formated SSL certificate chain data into an opaque cdata pointer (for later uses
Converts the PEM-formatted SSL certificate chain data into an opaque cdata pointer (for later uses
in the [set_cert](#set_cert)
function, for example).

Expand Down Expand Up @@ -541,7 +541,7 @@ parse_der_cert

**context:** *any*

Converts the DER-formated SSL certificate chain data into an opaque cdata pointer (for later uses
Converts the DER-formatted SSL certificate chain data into an opaque cdata pointer (for later uses
in the [set_cert](#set_cert)
function, for example).

Expand Down
4 changes: 2 additions & 2 deletions lib/ngx/ssl/clienthello.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ get_client_hello_server_name

Returns the TLS SNI (Server Name Indication) name set by the client.

Return `nil` when then the extension does not exist.
Return `nil` when the extension does not exist.

In case of errors, it returns `nil` and a string describing the error.

Expand All @@ -117,7 +117,7 @@ get_supported_versions

Returns the table of ssl hello supported versions set by the client.

Return `nil` when then the extension does not exist.
Return `nil` when the extension does not exist.

In case of errors, it returns `nil` and a string describing the error.

Expand Down
2 changes: 1 addition & 1 deletion lib/ngx/ssl/proxysslcert.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND

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

See AlsoCopyright
See Also
========
* the ngx_lua module: https://github.com/openresty/lua-nginx-module
* the [proxy_ssl_certificate_by_lua*](https://github.com/openresty/lua-nginx-module/#proxy_ssl_certificate_by_lua_block) directive.
Expand Down
2 changes: 1 addition & 1 deletion lib/ngx/ssl/proxysslverify.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND

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

See AlsoCopyright
See Also
========
* the ngx_lua module: https://github.com/openresty/lua-nginx-module
* the [proxy_ssl_verify_by_lua*](https://github.com/openresty/lua-nginx-module/#proxy_ssl_verify_by_lua_block) directive.
Expand Down