OpenSearch/libs/x-content
Jason Tedor 3fb0923182
Fix content type detection with leading whitespace (#32632)
Today content type detection on an input stream works by peeking up to
twenty bytes into the stream. If the stream is headed by more whitespace
than twenty bytes, we might fail to detect the content type. We should
be ignoring this whitespace before attempting to detect the content
type. This commit does that by ignoring all leading whitespace in an
input stream before attempting to guess the content type.
2018-08-06 18:07:46 -04:00
..
licenses Begin moving XContent to a separate lib/artifact (#29300) 2018-04-02 15:58:31 -06:00
src Fix content type detection with leading whitespace (#32632) 2018-08-06 18:07:46 -04:00
build.gradle Begin moving XContent to a separate lib/artifact (#29300) 2018-04-02 15:58:31 -06:00