keplerproject / wsapi

WSAPI is an API that abstracts the web server from Lua web applications.
http://keplerproject.github.io/wsapi
74 stars 33 forks source link

fix: change to work with CGILua 6.x #48

Closed soapdog closed 2 years ago

soapdog commented 2 years ago

There have been some changes in CGILua 6.x, this PR adds the missing parameters to cgilua.main() call in SAPI.

tomasguisasola commented 2 years ago

Hi soapdog

I am using CGILua 6 for years and had no such problem. CGILua comes with its own launcher, cgilua.cgi

Anyway, I'll take a look at your patch.

Regards, Tomás

soapdog commented 2 years ago

Tomás,

Thanks for the quick response. The reason for the patch was that sapi.lua:

This enables it to work without requiring the cgilua launcher (which is actually from where I picked the needed code changes). It can work with Xavante and Sailor framework now.

Please, reach out if you want me to change anything. I made the minimal changes necessary to get it to work with the current CGILua.

Without these fixes, it doesn't work with Xavante...