commit | 077d366ef7d09d2284ddea9f787cfce4ed4d3ba0 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Feb 05 15:28:55 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Feb 05 15:39:08 2020 +0100 |
tree | ceeb9e4de54404d8c448bdf4e9d2f32bc4f9e212 | |
parent | 4dd145a888c7679812664bf2f246fa8199e94ab0 [diff] |
CLEANUP: hpack: remove a redundant test in the decoder As reported in issue #485 the test for !len at the end of the loop in get_var_int() is useless since it was already done inside the loop. Actually the code is more readable if we remove the first one so let's do this instead. The resulting code is exactly the same since the compiler already optimized the test away.