forked from haproxy/haproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MINOR: qpack: improve decoding function
Adjust decoding loop by using temporary ist for header name and value. The header is inserted at the end of an iteration, which guarantee that we do not insert name only in the list in case of an error on value decoding. This also helps the function readability by centralizing the LIST insert operation. The return value of the decoding function is also changed. Now on success the number of headers inserted in the input list is returned. This change as no impact as success value is not used by the caller. This is mainly done to have a behavior similar to hpack decoding function.
- Loading branch information
1 parent
60ef19f
commit b666c6b
Showing
1 changed file
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters