On May 22, 2013, at 6:44 AM, Roberto De Ioris <[email protected]> wrote:
> I think this is more "right" check:
Thanks! That seems to have done the trick.
Regarding your suggestion of using error-route-status. I couldn't find any info
in the documentation about error routes or final routes. Why "error"?
Anyway, what I want is to return Keep-alive when the response status is 200 or
206. "close" otherwise. I've tried things like:
error-route-status = ^20[0,6]$ addheader:Connection: Keep-alive
error-route-status = ! ^20[0,6]$ addheader:Connection: close
or
add-header: Connection: close
error-route-status = 200 addheader:Connection: Keep-alive
error-route-status = 206 addheader:Connection: Keep-alive
but I can't seem to make it work. Does the syntax allow what I want?
Best regards,
André
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi