41a6c3
diff --git a/server/protocol.c b/server/protocol.c
41a6c3
index e1ef204..d6d9165 100644
41a6c3
--- a/server/protocol.c
41a6c3
+++ b/server/protocol.c
41a6c3
@@ -1049,6 +1049,7 @@ request_rec *ap_read_request(conn_rec *conn)
41a6c3
      * now read. may update status.
41a6c3
      */
41a6c3
     ap_update_vhost_from_headers(r);
41a6c3
+    access_status = r->status;
41a6c3
 
41a6c3
     /* Toggle to the Host:-based vhost's timeout mode to fetch the
41a6c3
      * request body and send the response body, if needed.