Hi all,
I have a situation where I'd like to make a location capture for auth, analyse the response and based on that either issue an error to the client or continue down with some rewrites.
Is there an easy way to send all of the headers from res = location.capture(..) back to the client in m ngx.say(..) and ngx.exit(res.status)
I can iterate over all of the headers in the response - first checking if it's a string or table and ngx.herser[key] = value them but this doesn't seem very elegant at all.. is there a better way to go about this?
Thanks
Rory