mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MEDIUM: htx: fix typo in htx_replace_stline() making it fail all the time
A typo in the block type check makes this function fail all the time, which has impact on anything rewriting a start line (set-uri, set-path etc). No backport needed.
This commit is contained in:
parent
8657742092
commit
c706cd73a5
1 changed files with 1 additions and 1 deletions
|
|
@ -602,7 +602,7 @@ struct htx_sl *htx_replace_stline(struct htx *htx, struct htx_blk *blk, const st
|
|||
uint32_t size;
|
||||
|
||||
type = htx_get_blk_type(blk);
|
||||
if (type != HTX_BLK_REQ_SL || HTX_BLK_RES_SL)
|
||||
if (type != HTX_BLK_REQ_SL && type != HTX_BLK_RES_SL)
|
||||
return NULL;
|
||||
|
||||
/* Save start-line info and flags */
|
||||
|
|
|
|||
Loading…
Reference in a new issue