assert that http1_is_persistent to 0
@@ -414,6 +414,7 @@ static void send_bad_request(struct st_h2o_http1_conn_t *conn)
"Bad Request")};
assert(conn->req.version == 0 && "request has not been parsed successfully");
+ assert(conn->req.http1_is_persistent == 0);
h2o_socket_write(conn->sock, (h2o_iovec_t *)&resp, 1, send_bad_request_on_complete);
h2o_socket_read_stop(conn->sock);
}
