Files
ARTEX/traffic/hookvm
Leo Camus 4cb1cd7404 fix(hookvm): compare a float with an integer without truncating it
valuesEqual converted both operands with toInt, which truncates a float64,
so 1.5 == 1 and -0.5 == 0 were true while 1.5 > 1 was also true. json.Decode
yields float64 numbers, so a hook testing m["amount"] == 0 matched a body
{"amount":0.5}. When either side is a float the comparison is now done in
float64.
2026-11-22 17:02:11 +00:00
..