We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb8054 commit 0907379Copy full SHA for 0907379
src/Microsoft.AspNetCore.NodeServices/HostingModels/HttpNodeInstance.cs
@@ -91,7 +91,7 @@ protected override async Task<T> InvokeExportAsync<T>(
91
92
case "application/octet-stream":
93
// Streamed responses have to be received as System.IO.Stream instances
94
- if (typeof(T) != typeof(Stream))
+ if (!typeof(T).GetTypeInfo().IsAssignableFrom(typeof(Stream).GetTypeInfo()))
95
{
96
throw new ArgumentException(
97
"Node module responded with binary stream. This cannot be converted to the requested generic type: " +
@@ -136,4 +136,4 @@ protected override void Dispose(bool disposing)
136
}
137
138
139
-}
+}
0 commit comments