aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-05 12:21:44 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-04-05 12:21:44 -0400
commit4ec4b0ee4c01681a095afd909a1e4cbfb276445f (patch)
tree0b6ca24e82b991acd4becf366db0c9117abb8081
parentjanet: improve slurp/spit semantics (diff)
janet: spit: use body-plain
to override content-type, simply change the content-type yourself it's meant to be an "easy to use" API, so defaults etc
-rw-r--r--jurl/init.janet2
1 files changed, 1 insertions, 1 deletions
diff --git a/jurl/init.janet b/jurl/init.janet
index 79952b4..29c6cee 100644
--- a/jurl/init.janet
+++ b/jurl/init.janet
@@ -418,5 +418,5 @@
(verify-slurpit
(->> url
(http :post)
- (body body))
+ (body-plain body))
opts))