Add RemoteStreamContent class type to RemoteStreamContentInputFormatter.

pull/8253/head
maliming 5 years ago
parent 9ce5b3151d
commit 7a503833fe

@ -15,7 +15,8 @@ namespace Volo.Abp.AspNetCore.Mvc.ContentFormatters
protected override bool CanReadType(Type type)
{
return typeof(IRemoteStreamContent) == type;
return type == typeof(IRemoteStreamContent) ||
type == typeof(RemoteStreamContent);
}
public override Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)

Loading…
Cancel
Save