Skip to content

Commit

Permalink
more fixes for lua 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mascarenhas committed Jan 29, 2013
1 parent 4b00539 commit 6b35861
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 82 deletions.
3 changes: 2 additions & 1 deletion samples/hello_config.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
isolated = false
local app = dofile(docroot .. "/hello.lua")
local wsx = require "wsapi.xavante"

rules = {
{
match = { "^/app$", "^/app/" },
with = wsapi.xavante.makeHandler(app, "/app", docroot, docroot)
with = wsx.makeHandler(app, "/app", docroot, docroot)
},
}
8 changes: 4 additions & 4 deletions src/launcher/wsapi
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ addrule{ -- wsapihandler example
}

if opts.cgilua then
require "xavante.cgiluahandler"
local hcgi = require "xavante.cgiluahandler"
addrule{
match = {"%.lp$", "%.lp/.*$", "%.cgi$", "%.cgi/.*$" },
with = xavante.cgiluahandler.makeHandler (config.docroot, launcher_params)
with = hcgi.makeHandler (config.docroot, launcher_params)
}
end
if opts.op then
require "orbit.ophandler"
local hop = require "orbit.ophandler"
addrule{
match = {"%.op$", "%.op/.*$" },
with = orbit.ophandler.makeHandler (config.docroot, launcher_params)
with = hop.makeHandler (config.docroot, launcher_params)
}
end

Expand Down
Loading

0 comments on commit 6b35861

Please sign in to comment.