Skip to content

Commit

Permalink
Use #writeFileStreamOn:do:binary: instead of inventing a new method i…
Browse files Browse the repository at this point in the history
…n Grease
  • Loading branch information
theseion committed Jun 5, 2022
1 parent c998a30 commit 146559a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ parseMultiPartFileFieldWithMimePart: aMimePart boundary: aBoundary decodeWith: a
fullBoundary := String crlf asByteArray, aBoundary.
file := self class temporaryFileDirectory / UUID new asString.
GRPlatform current
binaryWriteStreamFor: file
writeFileStreamOn: file pathString
do: [ :writer |
self
parseMultiPartFieldWithoutLengthWithBoundary: fullBoundary
writeOn: writer ].
self
parseMultiPartFieldWithoutLengthWithBoundary: fullBoundary
writeOn: writer ]
binary: true.

aBlock
value: aMimePart
Expand Down

0 comments on commit 146559a

Please sign in to comment.