removed unused code in wsgi handlers