@@ -244,17 +244,17 @@ private void AddSharedHeaderActions()
244
244
#endif
245
245
}
246
246
247
- private const string FormBoundary = "-----------------------------28947758029299" ;
247
+ private const string FORM_BOUNDARY = "-----------------------------28947758029299" ;
248
248
249
249
private static string GetMultipartFormContentType ( )
250
250
{
251
- return string . Format ( "multipart/form-data; boundary={0}" , FormBoundary ) ;
251
+ return string . Format ( "multipart/form-data; boundary={0}" , FORM_BOUNDARY ) ;
252
252
}
253
253
254
254
private static string GetMultipartFileHeader ( HttpFile file )
255
255
{
256
256
return string . Format ( "--{0}{4}Content-Disposition: form-data; name=\" {1}\" ; filename=\" {2}\" {4}Content-Type: {3}{4}{4}" ,
257
- FormBoundary , file . Name , file . FileName , file . ContentType ?? "application/octet-stream" , LINE_BREAK ) ;
257
+ FORM_BOUNDARY , file . Name , file . FileName , file . ContentType ?? "application/octet-stream" , LINE_BREAK ) ;
258
258
}
259
259
260
260
private string GetMultipartFormData ( HttpParameter param )
@@ -263,12 +263,12 @@ private string GetMultipartFormData(HttpParameter param)
263
263
? "--{0}{3}Content-Type: {1}{3}Content-Disposition: form-data; name=\" {1}\" {3}{3}{2}{3}"
264
264
: "--{0}{3}Content-Disposition: form-data; name=\" {1}\" {3}{3}{2}{3}" ;
265
265
266
- return string . Format ( format , FormBoundary , param . Name , param . Value , LINE_BREAK ) ;
266
+ return string . Format ( format , FORM_BOUNDARY , param . Name , param . Value , LINE_BREAK ) ;
267
267
}
268
268
269
269
private static string GetMultipartFooter ( )
270
270
{
271
- return string . Format ( "--{0}--{1}" , FormBoundary , LINE_BREAK ) ;
271
+ return string . Format ( "--{0}--{1}" , FORM_BOUNDARY , LINE_BREAK ) ;
272
272
}
273
273
274
274
private readonly IDictionary < string , Action < HttpWebRequest , string > > restrictedHeaderActions ;
0 commit comments