=htp #17051 fix BodyPartParser failing to detect initial boundary if it is chunked

This commit is contained in:
Johannes Rudolph 2015-06-04 18:09:16 +02:00 committed by Mathias
parent 211eeb95bd
commit eb8d834246
2 changed files with 12 additions and 2 deletions

View file

@ -98,7 +98,7 @@ private[http] final class BodyPartParser(defaultContentType: ContentType,
else parsePreamble(input, 0)
} else parsePreamble(input, 0)
} catch {
case NotEnoughDataException continue((input, _) tryParseInitialBoundary(input))
case NotEnoughDataException continue(input, 0)((newInput, _) tryParseInitialBoundary(newInput))
}
def parsePreamble(input: ByteString, offset: Int): StateResult =