Skip to content

Commit 7fed8a9

Browse files
committed
Merge pull request ServiceStack#766 from pruiz/fix-747
Always use \r\n as newLine while composing the mime-encoded body of PostFileWithRequest(..) as mandated by rfc1521.
2 parents a6c7313 + 084e046 commit 7fed8a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ServiceStack.Common/ServiceClient.Web/ServiceClientBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ public virtual TResponse PostFileWithRequest<TResponse>(string relativeOrAbsolut
10281028
var boundary = DateTime.UtcNow.Ticks.ToString(CultureInfo.InvariantCulture);
10291029
webRequest.ContentType = "multipart/form-data; boundary=" + boundary;
10301030
boundary = "--" + boundary;
1031-
var newLine = Environment.NewLine;
1031+
var newLine = "\r\n";
10321032
using (var outputStream = webRequest.GetRequestStream())
10331033
{
10341034
#if !MONOTOUCH

0 commit comments

Comments
 (0)