correctly restoring environ["wsgi.input"] after reading POST content