Commit 5e4d6c84 authored by Nils Goroll's avatar Nils Goroll

backend probe: no need to parse a reason phrase we do not use

Ref: bcdf4f12

https://tools.ietf.org/html/rfc7230#section-3.1.2
parent 6d1fb082
......@@ -369,9 +369,9 @@ vbp_poke(struct vbp_target *vt)
if (p != NULL)
*p = '\0';
i = sscanf(vt->resp_buf, "HTTP/%*f %u %s", &resp, buf);
i = sscanf(vt->resp_buf, "HTTP/%*f %u ", &resp);
if ((i == 1 || i == 2) && resp == vt->exp_status)
if (i == 1 && resp == vt->exp_status)
vt->happy |= 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment