Use append-as in mime.multipart
parent
a19428fa72
commit
750e61117e
|
@ -39,7 +39,7 @@ ERROR: end-of-stream multipart ;
|
||||||
|
|
||||||
: fill-bytes ( multipart -- multipart )
|
: fill-bytes ( multipart -- multipart )
|
||||||
buffer-size read
|
buffer-size read
|
||||||
[ '[ _ append ] change-bytes ]
|
[ '[ _ B{ } append-as ] change-bytes ]
|
||||||
[ t >>end-of-stream? ] if* ;
|
[ t >>end-of-stream? ] if* ;
|
||||||
|
|
||||||
: maybe-fill-bytes ( multipart -- multipart )
|
: maybe-fill-bytes ( multipart -- multipart )
|
||||||
|
@ -151,5 +151,5 @@ ERROR: no-content-disposition multipart ;
|
||||||
dup end-of-stream?>> [ process-header parse-multipart-loop ] unless ;
|
dup end-of-stream?>> [ process-header parse-multipart-loop ] unless ;
|
||||||
|
|
||||||
: parse-multipart ( separator -- mime-parts )
|
: parse-multipart ( separator -- mime-parts )
|
||||||
<multipart> parse-beginning fill-bytes parse-multipart-loop
|
<multipart> parse-beginning fill-bytes
|
||||||
mime-parts>> ;
|
parse-multipart-loop mime-parts>> ;
|
||||||
|
|
Loading…
Reference in New Issue