Ignacio Burgue?o <[email protected]> wrote:
> Setting the appropiate headers. For instance (this code is not cgilua,
> but you'll get the idea)
Thanks..mostly worked except cgilua appends it's own HTTP at the end of it so
gzip complains there's extra stuff at the end of the file that it ignored :-P
So I tried to work around this by using cgilua.redirect to a .lua script in
cgi-bin that only emits the required headers and the file.
I think I found a bug in cgilua.redirect. It always redirects to 127.0.0.1.
I did this
print("servername is ", cgilua.servervariable("SERVER_NAME"))
and it thinks it's 127.0.0.1 for some reason. Any hints as to why this is
happening?
I could work around this by emitting HTML that does a redirect using the
meta-refresh tag, but that seems like too many workaround for something that
should be simple and painless :-P
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/