Skip to main content

trailing_space

Function trailing_space 

Source
pub fn trailing_space(header_name: &str, value: &str) -> String
Expand description

Add a trailing space before the colon separator.

Content-Type : value — some parsers strip the space, making this equivalent. WAFs that expect Name: or Name: without extra space in the header name field may fail to match.