Skip to content

Commit 21d4a50

Browse files
committed
fix multipart
1 parent 85c229e commit 21d4a50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/multipart.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let make_form_data ?debug ?(index=0) ~headers contents =
3535
let n = String.length s in
3636
if n > 1 && String.get s 0 = '"' && String.get s (n-1) = '"' then String.sub s 1 (n-2)
3737
else s in
38-
let fo_content = String.concat "/r/n" contents in
38+
let fo_content = String.concat "\r\n" contents in
3939
let default = Format.sprintf "part%d" index in
4040
let fo_name, fo_filename, fo_headers = match Req.StringMap.find_opt "content-disposition" headers with
4141
| Some [ cd ] ->

0 commit comments

Comments
 (0)