Skip to content

Commit aecff25

Browse files
committed
set SocketsHttpHandler.IsEnabled to false on WASI
...at least until we get `System.Net.Sockets` working. Signed-off-by: Joel Dice <[email protected]>
1 parent eb67c25 commit aecff25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/SocketsHttpHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private void CheckDisposedOrStarted()
3636
/// Gets a value that indicates whether the handler is supported on the current platform.
3737
/// </summary>
3838
[UnsupportedOSPlatformGuard("browser")]
39-
public static bool IsSupported => !OperatingSystem.IsBrowser();
39+
public static bool IsSupported => !(OperatingSystem.IsBrowser() || OperatingSystem.IsWasi());
4040

4141
public bool UseCookies
4242
{

0 commit comments

Comments
 (0)