Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test that parsing a multipart/mixed upload no longer blows up
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--AaB03x | ||
Content-Disposition: form-data; name="foo" | ||
|
||
bar | ||
--AaB03x | ||
Content-Disposition: form-data; name="files" | ||
Content-Type: multipart/mixed, boundary=BbC04y | ||
|
||
--BbC04y | ||
Content-Disposition: attachment; filename="file.txt" | ||
Content-Type: text/plain | ||
|
||
contents | ||
--BbC04y | ||
Content-Disposition: attachment; filename="flowers.jpg" | ||
Content-Type: image/jpeg | ||
Content-Transfer-Encoding: binary | ||
|
||
contents | ||
--BbC04y-- | ||
--AaB03x-- |
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
e8a155a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeremy this fails dude, why did you trick me into pulling it!
e8a155a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e8a155a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josh line endings - how do they work?
e8a155a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raggi got it d24f775