OpenSearch/libs/x-content/src
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
..
main Fix content type detection with leading whitespace (#32632) 2018-08-06 18:07:46 -04:00
test Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00