diff --git a/src/modules/mod_accesslog.c b/src/modules/mod_accesslog.c index 0ff08f3..922c241 100644 --- a/src/modules/mod_accesslog.c +++ b/src/modules/mod_accesslog.c @@ -371,7 +371,7 @@ static void al_handle_vrclose(liVRequest *vr, liPlugin *p) { UNUSED(p); - if (resp->http_status == 0 || !log || !format) + if (LI_VRS_CLEAN == vr->state || resp->http_status == 0 || !log || !format) /* if status code is zero, it means the connection was closed while in keep alive state or similar and no logging is needed */ return;