access_by_lua error

Richard Kearsley Richard.Kearsley at m247.com
Mon Apr 18 02:27:29 MSD 2011


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





More information about the nginx mailing list