Skip to main content

validate_forwarded_headers

Function validate_forwarded_headers 

Source
pub fn validate_forwarded_headers(value: i32) -> Result<(), StateError>
Expand description

Validate a forwarded_headers wire value: it must name a ForwardedHeaders variant. prost decodes an unknown enum number into the raw i32, and the listener getter would silently read it as the default; a patch carrying one is refused instead.