@@ -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 \n Content-Disposition: form-data; name=\" { field } \" ; filename=\" { fileName } \" \r \n Content-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