This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ private bool TryDecodeMime(string input, out string output)
511
511
{
512
512
var encoding = Encoding . GetEncoding ( parts [ 1 ] ) ;
513
513
var bytes = Convert . FromBase64String ( parts [ 3 ] ) ;
514
- output = encoding . GetString ( bytes ) ;
514
+ output = encoding . GetString ( bytes , 0 , bytes . Length ) ;
515
515
return true ;
516
516
}
517
517
catch ( ArgumentException )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ internal static class HttpRuleParser
41
41
internal const int MaxInt32Digits = 10 ;
42
42
43
43
// iso-8859-1, Western European (ISO)
44
- internal static readonly Encoding DefaultHttpEncoding = Encoding . GetEncoding ( 28591 ) ;
44
+ internal static readonly Encoding DefaultHttpEncoding = Encoding . GetEncoding ( "iso-8859-1" ) ;
45
45
46
46
static HttpRuleParser ( )
47
47
{
Original file line number Diff line number Diff line change 15
15
},
16
16
"dependencies" : {},
17
17
"frameworks" : {
18
- "net451" : {},
19
- "netstandard1.3" : {
18
+ "netstandard1.0" : {
20
19
"dependencies" : {
21
20
"System.Collections" : " 4.0.11-*" ,
22
21
"System.Diagnostics.Contracts" : " 4.0.1-*" ,
23
22
"System.Globalization" : " 4.0.11-*" ,
24
- "System.Globalization.Extensions" : " 4.0.1-*" ,
25
23
"System.Linq" : " 4.1.0-*" ,
24
+ "System.Resources.ResourceManager" : " 4.0.1-*" ,
25
+ "System.Runtime.Extensions" : " 4.1.0-*" ,
26
26
"System.Text.Encoding" : " 4.0.11-*" ,
27
- "System.Resources.ResourceManager" : " 4.0.1-*"
28
27
},
29
28
"imports" : [
30
- " dotnet5.4 "
29
+ " dotnet5.1 "
31
30
]
32
31
}
33
32
}
You can’t perform that action at this time.
0 commit comments