diff --git a/src/checks.c b/src/checks.c index 6b7c382e4..d865c0b2f 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1010,10 +1010,7 @@ static void event_srv_chk_r(struct connection *conn) */ if (end[0] == '\0' || end[0] == ' ' || end[0] == '\t') { status = HCHK_STATUS_L7STS; - /* Skip over leading blanks */ - while (end[0] != '\0' && (end[0] == ' ' || end[0] == '\t')) - end++; - desc = end; + desc = check->bi->data; } }