proxy-wasm-rust-sdk
proxy-wasm-rust-sdk copied to clipboard
Inconsistent behavior with set_http_request_headers
Apparently add_http_[request|response]_header appends the new value to any pre-existing values whereas set_http_[request|response]_header fully overrides any previous values. Seems reasonable and intuitive.
However it appears that the plural version of set above (observed withset_http_request_headers(Vec<&str, &str>)) behaves like add and appends to any pre-existing values.
I cannot replicate this issue, everything seems to work fine and the whole header map is replaced with the provided values.
Do you have any code snippet or example that doesn't work?