]> git.kaiwu.me - haproxy.git/commit
CLEANUP: http_ana: Make use of the return value of stream_generate_unique_id()
authorTim Duesterhus <tim@bastelstu.be>
Tue, 17 May 2022 22:22:15 +0000 (00:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 May 2022 05:19:01 +0000 (07:19 +0200)
commit7ad27d41b483cdad619169fccc713c7c2f1d068c
tree956a9cfea782c8fb825f1acf6bcb243cc101b31c
parentccc0355c413ad3bc808ee3eaf3b8e69516025cca
CLEANUP: http_ana: Make use of the return value of stream_generate_unique_id()

Even if `unique_id` and `s->unique_id` are identical it is a bit odd to
`isttest()` `unique_id` and then use `s->unique_id` in the call to `http_add_header()`.

This "issue" was introduced in a17e66289c08a5bfadc1bb5b5f2c618c9299fe1b,
because before that commit the function returned the length of the ID, as it
was not an ist.
src/http_ana.c
src/stream.c