Browse Source

Fix wrong lua type for CACHE_MISS/CACHE_HIT in mod_cml (fixes #533)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2398 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.22
Stefan Bühler 13 years ago
parent
commit
76f7b9543d
  1. 2
      NEWS
  2. 4
      src/mod_cml_lua.c

2
NEWS

@ -4,7 +4,7 @@ NEWS
====
- 1.4.22 -
*
* Fix wrong lua type for CACHE_MISS/CACHE_HIT in mod_cml (fixes #533)
- 1.4.21 - 2009-02-16

4
src/mod_cml_lua.c

@ -282,11 +282,11 @@ int cache_parse_lua(server *srv, connection *con, plugin_data *p, buffer *fn) {
/* 2 default constants */
lua_pushliteral(L, "CACHE_HIT");
lua_pushboolean(L, 0);
lua_pushnumber(L, 0);
lua_settable(L, LUA_GLOBALSINDEX);
lua_pushliteral(L, "CACHE_MISS");
lua_pushboolean(L, 1);
lua_pushnumber(L, 1);
lua_settable(L, LUA_GLOBALSINDEX);
/* load lua program */

Loading…
Cancel
Save