]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: htx: fix a typo in an error message of http_str_to_htx
authorManu Nicolas <e.nicolas@criteo.com>
Mon, 9 Jan 2023 01:31:06 +0000 (01:31 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Jan 2023 04:28:03 +0000 (05:28 +0100)
This fixes a typo in an error message about headers in the
http_str_to_htx function.

src/http_htx.c

index 2978f2eb409e1d21772d517df33a71417e5545b6..58b24183f98ccb771a66fbf1a50d6b8e13210a91 100644 (file)
@@ -924,7 +924,7 @@ int http_str_to_htx(struct buffer *buf, struct ist raw, char **errmsg)
        ret = h1_headers_to_hdr_list(raw.ptr, istend(raw),
                                     hdrs, sizeof(hdrs)/sizeof(hdrs[0]), &h1m, &h1sl);
        if (ret <= 0) {
-               memprintf(errmsg, "unabled to parse headers (error offset: %d)", h1m.err_pos);
+               memprintf(errmsg, "unable to parse headers (error offset: %d)", h1m.err_pos);
                goto error;
        }