Hi We are creating a web service using Pyons that uses XML as the primary response content type. We have had some trouble when using abort() because it raises a webob.exc.WSGIHTTPException which has a HTML response as it's default body.
The workaround we have implemented overrides _inspect_call() in base.py like this def _inspect_call(self, func): result = super(BaseController, self)._inspect_call(func) if hasattr(result,'empty_body'): result.empty_body = True return result Perhaps it should be the default to always set empty_body to True when a WSGIHTTPException is raised or when it is caught. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en -~----------~----~----~----~------~----~------~--~---