This PR trims leading and trailing whitespace on parsed header values. I would have opted to use trim_ascii, however that function is not stabilized for &[u8], so instead I copied their implementation here with comment.
I also considered modifying the parser combinator, but I felt that this approach was much clearer in respect to how the header value was being transformed.
This PR trims leading and trailing whitespace on parsed header values. I would have opted to use trim_ascii, however that function is not stabilized for &[u8], so instead I copied their implementation here with comment.
I also considered modifying the parser combinator, but I felt that this approach was much clearer in respect to how the header value was being transformed.