Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 4ba28bd

Browse files
committed
spelling
1 parent d1f4b83 commit 4ba28bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ServiceStack.Text/HttpUtils.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,14 +1075,14 @@ public static void UploadFile(this WebRequest webRequest, Stream fileStream, str
10751075

10761076
httpReq.ContentType = "multipart/form-data; boundary=\"" + boundary + "\"";
10771077

1078-
var boundarybytes = ("\r\n--" + boundary + "--\r\n").ToAsciiBytes();
1078+
var boundaryBytes = ("\r\n--" + boundary + "--\r\n").ToAsciiBytes();
10791079

10801080
var header = "\r\n--" + boundary +
10811081
$"\r\nContent-Disposition: form-data; name=\"{field}\"; filename=\"{fileName}\"\r\nContent-Type: {mimeType}\r\n\r\n";
10821082

1083-
var headerbytes = header.ToAsciiBytes();
1083+
var headerBytes = header.ToAsciiBytes();
10841084

1085-
var contentLength = fileStream.Length + headerbytes.Length + boundarybytes.Length;
1085+
var contentLength = fileStream.Length + headerBytes.Length + boundaryBytes.Length;
10861086
PclExport.Instance.InitHttpWebRequest(httpReq,
10871087
contentLength: contentLength, allowAutoRedirect: false, keepAlive: false);
10881088

@@ -1094,11 +1094,11 @@ public static void UploadFile(this WebRequest webRequest, Stream fileStream, str
10941094

10951095
using (var outputStream = PclExport.Instance.GetRequestStream(httpReq))
10961096
{
1097-
outputStream.Write(headerbytes, 0, headerbytes.Length);
1097+
outputStream.Write(headerBytes, 0, headerBytes.Length);
10981098

10991099
fileStream.CopyTo(outputStream, 4096);
11001100

1101-
outputStream.Write(boundarybytes, 0, boundarybytes.Length);
1101+
outputStream.Write(boundaryBytes, 0, boundaryBytes.Length);
11021102

11031103
PclExport.Instance.CloseStream(outputStream);
11041104
}

0 commit comments

Comments
 (0)