Hello,

I have configured uWSGI in order to proxy to an http server and, after that, transform the response from the http server through the XSLT transformation plugin. It works. The relevant config is:

route= ^/ toxslt:stylesheet=/whatever/template.xslt,content_type=text/html
route= ^/ proxyhttp:127.0.0.1:8002

With this I am able to XSLT-transform every response from the 127.0.0.1:8002 server.

The problem is that I would like to do this *only* when the response is a Content-type=text/html (whatever the URL is, i.e. it cannot be done by file extension. It must be by the Content-type header of the response)

Is there a way to apply the transformation depending on the response from the server?

I also considered using python code to setup the "transformation chain" on the fly as the response reaches back to the uWSGI instance, but it is poorly documented, I just don't know how to do it. Any idea?

Thank you.

Pablo.



_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to