-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(proxy-wasm) consistent context checks for all header setters
This commit creates a helper function `hfuncs_set_header_check` which is used by all Proxy-Wasm host functions setting headers (set, add, replace, remove), ensuring a consistent behavior across all of them. In particular, some of the header setters did not produce `BAD_ARGUMENT` when `map_type` is invalid. This also changes the behavior of the functions to produce traps when they are called in invalid contexts, instead of logging an error and returning `OK`. This matches the behavior of the body setter functions. Also add context checks suites for all header setters. Co-Authored-By: Thibault Charbonnier <[email protected]>
- Loading branch information
1 parent
ee5890d
commit 4ed3817
Showing
16 changed files
with
1,670 additions
and
304 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
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
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
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
Oops, something went wrong.