]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: checks: use b_putist() instead of b_putstr()
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Jul 2018 07:53:57 +0000 (09:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:43 +0000 (16:23 +0200)
This slightly simplifies the code.

src/checks.c

index d2c4035ab2927cd859d0a8f02b4bd24ba1685fed..bf4c78f68cac219114b1403366a5289584f0966d 100644 (file)
@@ -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 */
                }
        }