@@ -979,16 +979,17 @@ private void ParseSection(RebufferableBinaryReader reader)
979979 throw new MultipartParseException ( "Unexpected end of section" ) ;
980980 }
981981
982- // This line parses the header values into a set of key/value pairs. For example:
983- // Content-Disposition: form-data; name="textdata"
984- // ["content-disposition"] = "form-data"
985- // ["name"] = "textdata"
986- // Content-Disposition: form-data; name="file"; filename="data.txt"
987- // ["content-disposition"] = "form-data"
988- // ["name"] = "file"
989- // ["filename"] = "data.txt"
990- // Content-Type: text/plain
991- // ["content-type"] = "text/plain"
982+ // This line parses the header values into a set of key/value pairs.
983+ // For example:
984+ // Content-Disposition: form-data; name="textdata"
985+ // ["content-disposition"] = "form-data"
986+ // ["name"] = "textdata"
987+ // Content-Disposition: form-data; name="file"; filename="data.txt"
988+ // ["content-disposition"] = "form-data"
989+ // ["name"] = "file"
990+ // ["filename"] = "data.txt"
991+ // Content-Type: text/plain
992+ // ["content-type"] = "text/plain"
992993 Dictionary < string , string > values = SplitBySemicolonIgnoringSemicolonsInQuotes ( line )
993994 . Select ( x => x . Split ( new [ ] { ':' , '=' } , 2 ) )
994995
@@ -1072,16 +1073,17 @@ private async Task ParseSectionAsync(RebufferableBinaryReader reader, Cancellati
10721073 throw new MultipartParseException ( "Unexpected end of section" ) ;
10731074 }
10741075
1075- // This line parses the header values into a set of key/value pairs. For example:
1076- // Content-Disposition: form-data; name="textdata"
1077- // ["content-disposition"] = "form-data"
1078- // ["name"] = "textdata"
1079- // Content-Disposition: form-data; name="file"; filename="data.txt"
1080- // ["content-disposition"] = "form-data"
1081- // ["name"] = "file"
1082- // ["filename"] = "data.txt"
1083- // Content-Type: text/plain
1084- // ["content-type"] = "text/plain"
1076+ // This line parses the header values into a set of key/value pairs.
1077+ // For example:
1078+ // Content-Disposition: form-data; name="textdata"
1079+ // ["content-disposition"] = "form-data"
1080+ // ["name"] = "textdata"
1081+ // Content-Disposition: form-data; name="file"; filename="data.txt"
1082+ // ["content-disposition"] = "form-data"
1083+ // ["name"] = "file"
1084+ // ["filename"] = "data.txt"
1085+ // Content-Type: text/plain
1086+ // ["content-type"] = "text/plain"
10851087 Dictionary < string , string > values = SplitBySemicolonIgnoringSemicolonsInQuotes ( line )
10861088 . Select ( x => x . Split ( new [ ] { ':' , '=' } , 2 ) )
10871089
0 commit comments