UPDATED TO .net5 Tests ok so far, had to edit a package file just click on it and add a ) if necessary

This commit is contained in:
2020-09-24 16:14:07 +00:00
parent 28d8a50757
commit 03352e2799
4 changed files with 24 additions and 14 deletions

View File

@@ -129,7 +129,7 @@ namespace AyaNova.Api.ControllerHelpers
var hasMediaTypeHeader = MediaTypeHeaderValue.TryParse(section.ContentType, out mediaType);
// UTF-7 is insecure and should not be honored. UTF-8 will succeed in
// most cases.
if (!hasMediaTypeHeader || Encoding.UTF7.Equals(mediaType.Encoding))
if (!hasMediaTypeHeader || Encoding.UTF8.Equals(mediaType.Encoding))
{
return Encoding.UTF8;
}