mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-17 19:16:56 +00:00
BUG/MINOR: jwt: Wrong return value checked
The wrong return value was checked, resulting in dead code and potential bugs. It should fix GitHub issue #2005. This patch should be backported up to 2.5.
This commit is contained in:
parent
7d84439b48
commit
a0658c3cf3
@ -265,7 +265,8 @@ client c12 -connect ${h1_mainfe_sock} {
|
||||
rxresp
|
||||
expect resp.status == 200
|
||||
expect resp.http.x-jwt-alg == "ES512"
|
||||
expect resp.http.x-jwt-verify-ES512 == "0"
|
||||
# Invalid token
|
||||
expect resp.http.x-jwt-verify-ES512 == "-3"
|
||||
} -run
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user