Welcome! Log In Create A New Profile

Advanced

access_by_lua error

Richard Kearsley
April 17, 2011 06:28PM
Hi, not sure if I'm doing this the right way round but getting this error:

[error] 11346#0: *1 content_by_lua aborted: runtime error: [string "access_by_lua"]:22: attempt to call ngx.exit after sending out the headers while sending to client

On the lua code:
elseif (res.status == ngx.HTTP_OK) then
ngx.print(res.body)
ngx.exit(res.status)

I'm sure it's something simple im doing wrong?

Thanks



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

access_by_lua error

Richard Kearsley April 17, 2011 06:28PM

Re: access_by_lua error

agentzh April 18, 2011 04:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready