From 6f85c7555816668fc639588b022fde4d8f9d4a72 Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Mon, 11 Oct 2021 15:34:28 +0300 Subject: [PATCH] multipart/form-data must use CRLF line breaks --- src/Net/Http.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Net/Http.fs b/src/Net/Http.fs index 7d1800869..c960d71a5 100644 --- a/src/Net/Http.fs +++ b/src/Net/Http.fs @@ -1359,7 +1359,7 @@ module private HttpHelpers = [ prefixedBoundary HttpRequestHeaders.ContentDisposition("form-data", Some formField, Some fileName) |> printHeader HttpRequestHeaders.ContentType contentType |> printHeader ] - |> String.concat Environment.NewLine + |> String.concat "\r\n" let headerStream = let bytes = e.GetBytes headerpart new MemoryStream(bytes) :> Stream