Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 result code on xavante?! #17

Open
d9k opened this issue Jun 16, 2018 · 2 comments
Open

404 result code on xavante?! #17

d9k opened this issue Jun 16, 2018 · 2 comments

Comments

@d9k
Copy link

d9k commented Jun 16, 2018

Hello!
I'm unable to return 404 HTTP status code on xavante from sailor web framework: sailorproject/sailor#24

remy uses cgilua with xavante and the src/remy/cgilua in function M.finish(code) argument code is never used!

https://github.com/felipedaragon/remy/blob/master/src/remy/cgilua.lua#L97

(r.status in this function has proper value 404 too, but xavante return http code 200)

@d9k
Copy link
Author

d9k commented Jun 16, 2018

What the... Even cgilua isn't able to return custom http status..
lunarmodules/cgilua#12
There is advice in discussion "You'll have to use wsapi directly". What does it mean?

@felipedaragon
Copy link
Member

Hello @d9k! Yup, AFAIK there is no way to set the status code with CGILua. Better adopt mod_lua or ngx_lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants