> I see that you've committed this patch to the wsapi Git repository.
> So, I think, I would be able to get it from rocks-cvs.
I'm a bit confused with wsapi-xavante installation from rocks-cvs repository.
I have this file with wsapi-xavante release 1.2
/usr/local/share/lua/5.1/wsapi/xavante.lua
I assume that this file is loaded when I do
require 'wsapi.xavante'
When I try to install wsapi-xavante from rocks-cvs repo
$ sudo luarocks install wsapi-xavante
--from=http://luarocks.org/repositories/rocks-cvs
luarocks creates new file
/usr/local/share/lua/5.1/wsapi_xavante_cvs_1-wsapi/xavante.lua
and old file remains untouched.
I think that require still loads the old one.
If I uninstall release wsapi-xavante before I install cvs one, cvs
version is installed into proper path:
/usr/local/share/lua/5.1/wsapi/xavante.lua
How should I install wsapi-xavante from cvs rockspec?
Also, I think I've found a bug in your patch:
index c778006..8386197 100644
--- a/etc/hackedwsapi/wsapi/xavante.lua
+++ b/etc/hackedwsapi/wsapi/xavante.lua
@@ -38,7 +38,7 @@ local function set_cgivars (req, diskpath,
path_info_pat, script_name_pat, extra
CONTENT_LENGTH = req.headers ["content-length"],
}
if req.cgivars.PATH_INFO == "" then req.cgivars.PATH_INFO = "/" end
- for n,v in ipairs(extra_vars or {}) do
+ for n,v in pairs(extra_vars or {}) do
req.cgivars[n] = v
end
for n,v in pairs (req.headers) do
Alexander.
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/