Fix no emit header when headers_send