=htp #17051 fix BodyPartParser failing to detect initial boundary if it is chunked
This commit is contained in:
parent
211eeb95bd
commit
eb8d834246
2 changed files with 12 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue