Handle iolist in should_compress for middleware