From: Willy Tarreau Date: Thu, 12 Jul 2018 07:53:57 +0000 (+0200) Subject: MINOR: checks: use b_putist() instead of b_putstr() X-Git-Tag: v1.9-dev1~80 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=a094fde2b62f5baf6d7ec5ba0f870a4e42e62148;p=haproxy-3.0.git MINOR: checks: use b_putist() instead of b_putstr() This slightly simplifies the code. --- diff --git a/src/checks.c b/src/checks.c index d2c4035..bf4c78f 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1533,8 +1533,8 @@ static int connect_conn_chk(struct task *t) b_putblk(check->bo, trash.str, httpchk_build_status_header(s, trash.str, trash.size)); /* prevent HTTP keep-alive when "http-check expect" is used */ if (s->proxy->options2 & PR_O2_EXP_TYPE) - b_putstr(check->bo, "Connection: close\r\n"); - b_putstr(check->bo, "\r\n"); + b_putist(check->bo, ist("Connection: close\r\n")); + b_putist(check->bo, ist("\r\n")); *b_tail(check->bo) = '\0'; /* to make gdb output easier to read */ } }