aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-03-24 19:34:44 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-03-24 19:34:44 -0400
commit426e1498b8ae5f449b1490e5daf636d4199019e8 (patch)
tree1cb508e623bcaa76ae933bd7f05d2823e6670db0
parentnative: fix mime stuff (diff)
jurl: update mime module
you have to give it the handle now I sure hope this won't be a problem with GC
-rw-r--r--jurl/mime.janet4
1 files changed, 2 insertions, 2 deletions
diff --git a/jurl/mime.janet b/jurl/mime.janet
index 7bc0a94..546a3b0 100644
--- a/jurl/mime.janet
+++ b/jurl/mime.janet
@@ -35,8 +35,8 @@
# define a complete mime in one go
(defn new
- [& parts]
- (def out (native/mime-new))
+ [handle & parts]
+ (def out (native/mime-new handle))
(each part parts
(mime-part out (:addpart out) part))
out)