-
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.
fix(proxy-wasm) consistent context checks for header setters
This commit creates a helper function `ngx_proxy_wasm_hfuncs_set_header_check` which is used by all proxy-wasm host functions which set 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.
- Loading branch information
Showing
7 changed files
with
452 additions
and
157 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
Oops, something went wrong.