]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Reapply the ist2() replacement patch
authorTim Duesterhus <tim@bastelstu.be>
Tue, 2 Mar 2021 17:57:26 +0000 (18:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Mar 2021 04:07:10 +0000 (05:07 +0100)
One location was not matched due to a typo. Reapply the patch for consistency.

see 92c696e663ab4bbcffd5dc0afedf1d0afd1c7279
see a3298023b04923ba12429d79c559dc7a850ae122

src/mux_h2.c

index 4dada0b0c664edc4fab7c9b603dc7abd1552d7b9..3810943c5578913ed7b3ff96047a48b0ad3c11ef 100644 (file)
@@ -5360,8 +5360,7 @@ static size_t h2s_bck_make_req_headers(struct h2s *h2s, struct htx *htx)
 
                        if (len + 2 < uri.len && uri.ptr[len + 1] == '/' && uri.ptr[len + 2] == '/') {
                                /* make the uri start at the authority now */
-                               scheme.ptr = uri.ptr;
-                               scheme.len = len;
+                               scheme = ist2(uri.ptr, len);
                                uri.ptr += len + 3;
                                uri.len -= len + 3;