I was trying to understand middleware a little better, and so I was testing out one an example of authentication middleware I found here:
http://pythonpaste.org/do-it-yourself-framework.html#wsgi-middleware But when this middleware is placed in a Pylons(.9.6.1) app, paste.httpserver raises an assertion error whenever 'auth_required' method is invoked from within the middleware. File "/usr/lib/python2.5/site-packages/Paste-1.4.2-py2.5.egg/paste/ httpserver.py", line 170, in wsgi_start_response assert 0, "Attempt to set headers a second time w/o an exc_info" AssertionError: Attempt to set headers a second time w/o an exc_info Any tips? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
