]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: haterm: Return the good start-line for 100-continue interim message
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Apr 2026 18:49:23 +0000 (20:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 9 Apr 2026 20:04:42 +0000 (22:04 +0200)
When "Expect" header was found in request headers, "HTTP/1.1 100-continue"
was returned instead of "HTTP/1.1 100 continue". Let's fix it.

No backport needed.

src/haterm.c

index a8c07d41ef41d2958d88f6a7fd6f5e20de76d754..d5c46025011433c7f6328cc45d3ec173088d6469 100644 (file)
@@ -509,7 +509,7 @@ static int hstream_build_http_100_continue_resp(struct hstream *hs)
 
        htx = htx_from_buf(buf);
        sl = htx_add_stline(htx, HTX_BLK_RES_SL, flags, ist("HTTP/1.1"),
-                                               ist("100-continue"), IST_NULL);
+                           ist("100"), ist("continue"));
        if (!sl) {
                TRACE_ERROR("could not add HTX start line", HS_EV_HSTRM_SEND, hs);
                goto err;