htp: use transactions right get function

Not the VecDeque one

Ticket: 7803
pull/13772/head
Philippe Antoine 3 months ago committed by Victor Julien
parent 08ee3c3447
commit be605ba2de

@ -33,7 +33,7 @@ impl Transactions {
// that transaction is started), or zero if neither // that transaction is started), or zero if neither
// request or response transaction exist yet // request or response transaction exist yet
let tx_to_check = std::cmp::max(self.request, self.response); let tx_to_check = std::cmp::max(self.request, self.response);
match self.transactions.get(tx_to_check) { match self.get(tx_to_check) {
// Transaction is created, check if it is started // Transaction is created, check if it is started
Some(tx) => tx.index.wrapping_add(tx.is_started() as usize), Some(tx) => tx.index.wrapping_add(tx.is_started() as usize),
// Transaction doesn't exist yet, so the index is the size // Transaction doesn't exist yet, so the index is the size

Loading…
Cancel
Save