proxy-wasm-rust-sdk icon indicating copy to clipboard operation
proxy-wasm-rust-sdk copied to clipboard

Inconsistent behavior with set_http_request_headers

Open aweis89 opened this issue 4 years ago • 1 comments

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.

aweis89 avatar Aug 28 '21 23:08 aweis89

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?

PiotrSikora avatar Apr 07 '22 07:04 PiotrSikora