From f6db3c41843d0271274778840b83ccbfc10ee95d Mon Sep 17 00:00:00 2001 From: Max Leske Date: Sun, 5 Jun 2022 15:55:02 +0200 Subject: [PATCH] Use #writeFileStreamOn:do:binary: instead of inventing a new method in Grease --- ...ultiPartFileFieldWithMimePart.boundary.decodeWith..st | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/repository/Zinc-Seaside-Pharo.package/ZnStreamingMultiPartFormDataEntity.class/instance/parseMultiPartFileFieldWithMimePart.boundary.decodeWith..st b/repository/Zinc-Seaside-Pharo.package/ZnStreamingMultiPartFormDataEntity.class/instance/parseMultiPartFileFieldWithMimePart.boundary.decodeWith..st index 55bcb1bae..63a21bfdf 100644 --- a/repository/Zinc-Seaside-Pharo.package/ZnStreamingMultiPartFormDataEntity.class/instance/parseMultiPartFileFieldWithMimePart.boundary.decodeWith..st +++ b/repository/Zinc-Seaside-Pharo.package/ZnStreamingMultiPartFormDataEntity.class/instance/parseMultiPartFileFieldWithMimePart.boundary.decodeWith..st @@ -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