Fixed: Handle download clients sending invalid content-type header.

DownloadStation incorrectly surrounds charset with double-quotes. whereas the http standard specifies they must be without quotes.

fixes #1586
This commit is contained in:
margaale
2016-12-20 16:54:44 -03:00
committed by Taloth
parent 7f8093de92
commit 8d776abb48
3 changed files with 44 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ namespace NzbDrone.Common.Http
if (charset.IsNotNullOrWhiteSpace())
{
encoding = Encoding.GetEncoding(charset);
encoding = Encoding.GetEncoding(charset.Replace("\"", ""));
}
}