don't serve the file to the client until it's ready

This makes the proxy run slower, but at least passes the tests.