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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user