Working WSGI middleware