Skip to content

Commit 1882b3b

Browse files
committed
*correctly* auto-convert multipart args to string
1 parent 339ab42 commit 1882b3b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/srv.arc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ Connection: close"))
296296
(list unstring.it
297297
(w/table multipart-arg
298298
(= (multipart-arg "contents")
299-
(check bytes-string.body all-ascii? body))
299+
(if (all-ascii? body)
300+
bytes-string.body
301+
body))
300302
(each (property val) headers
301303
(unless (iso "name" property)
302304
(= multipart-arg.property val)))))))

0 commit comments

Comments
 (0)