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 Sep 18, 2023
1 parent 7cc9e84 commit 569b76b
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 569b76b

Please sign in to comment.