Closed adutra closed 4 years ago
That's the expected behavior now as the parsedHeaders
will bring the original content extracted from the input without any modification. This is required to support the handling of tricky structures such as inputs with headers like: "header1"," header1"
where the whitespace is the only way to discriminate one from the other - but you still want to trim all the values that come after. Believe it or not this sort of thing exists in production systems out there and I myself had to deal with this.
@jbax thanks for the explanation! Maybe you should stress this behavioral change in the javadocs? It took me a while to figure out why our tests were failing after the upgrade to 2.8.
With 2.7.6 the code below prints
true
, but with 2.8.4 it printsfalse
. IOWparsedHeaders()
is not honoringignoreLeadingWhitespaces
andignoreTrailingWhitespaces
anymore: