fixed bug in wsgi and removed the passed check in read stream