bugfix: ngx.flush(true) might not return 1 on success.