Skip to content

Commit c2df51c

Browse files
authored
Merge branch 'openresty:master' into master
2 parents 95b12ac + 6e68398 commit c2df51c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ lib_dir=lib
77
doc_dir=lib
88
repo_link=https://github.com/openresty/lua-resty-core
99
main_module=lib/resty/core/base.lua
10-
requires = luajit >= 2.1.0, nginx >= 1.29.2, ngx_http_lua = 0.10.29, openresty/lua-resty-lrucache >= 0.08
10+
requires = luajit >= 2.1.0, nginx >= 1.29.2, ngx_http_lua = 0.10.30, openresty/lua-resty-lrucache >= 0.15

lib/resty/core/base.lua

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,24 @@ local FREE_LIST_REF = 0
1919
if subsystem == 'http' then
2020
if not ngx.config
2121
or not ngx.config.ngx_lua_version
22-
or ngx.config.ngx_lua_version ~= 10029
22+
or ngx.config.ngx_lua_version ~= 10030
2323
then
24-
error("ngx_http_lua_module 0.10.29 required")
24+
local ver = ngx.config and tostring(ngx.config.ngx_lua_version) or 'nil'
25+
error("ngx_http_lua_module 0.10.30 required but got " .. ver)
2526
end
2627

2728
elseif subsystem == 'stream' then
2829
if not ngx.config
2930
or not ngx.config.ngx_lua_version
30-
or ngx.config.ngx_lua_version ~= 17
31+
or ngx.config.ngx_lua_version ~= 18
3132
then
32-
error("ngx_stream_lua_module 0.0.17 required")
33+
local ver = ngx.config and tostring(ngx.config.ngx_lua_version) or 'nil'
34+
error("ngx_stream_lua_module 0.0.18 required but got " .. ver)
3335
end
3436

3537
else
36-
error("ngx_http_lua_module 0.10.29 or "
37-
.. "ngx_stream_lua_module 0.0.17 required")
38+
error("ngx_http_lua_module 0.10.30 or "
39+
.. "ngx_stream_lua_module 0.0.18 required")
3840
end
3941

4042

@@ -141,7 +143,7 @@ local c_buf_type = ffi.typeof("char[?]")
141143
local _M = new_tab(0, 18)
142144

143145

144-
_M.version = "0.1.32"
146+
_M.version = "0.1.33"
145147
_M.new_tab = new_tab
146148
_M.clear_tab = clear_tab
147149

0 commit comments

Comments
 (0)