Skip to content

Comments

Fix a bug where CIDs is not updated correctly#6

Open
zz85 wants to merge 1 commit intoquiclog:masterfrom
zz85:patch-1
Open

Fix a bug where CIDs is not updated correctly#6
zz85 wants to merge 1 commit intoquiclog:masterfrom
zz85:patch-1

Conversation

@zz85
Copy link

@zz85 zz85 commented Jan 7, 2021

In ParserPCAP.ts, CIDs is not updated correctly when a new CID is in index 0 of the client/serverIssuedCIDs.
.indexOf() should be used with > -1 to check existence of a member,
otherwise .includes() would be the better method (available with ECMAScript 2016)

In ParserPCAP.ts, CIDs is not updated correctly when a new CID is in index 0 of the client/serverIssuedCIDs.
`.indexOf()` should be used with `> -1` to check existence of a member,
otherwise `.includes()` would be the better method (available with ECMAScript 2016)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant