-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip the preamble in MultipartReader.
This updates the MultipartReader to ignore the preamble of a multipart message. To quote the RFC: > There appears to be room for additional information prior to the first > boundary delimiter line and following the final boundary delimiter line. > These areas should generally be left blank, and implementations must > ignore anything that appears before the first boundary delimiter line or > after the last one. To do this, the MultipartReader now acts slightly differently at the beginning of the file. Instead of looking for a boundary and excepting if it doesn't find one, it will skip over the initial data looking for the first boundary and start reading from there. If it doesn't find any boundary, it will except similar to how it did before. Fixes #880
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters