Skip to content

Commit

Permalink
disable SocketsHttpHandler support for WASI (#2667)
Browse files Browse the repository at this point in the history
Disabling this until System.Net.Sockets support comes to WASI.

Signed-off-by: Matthew Fisher <[email protected]>
  • Loading branch information
bacongobbler authored Aug 26, 2024
1 parent c213405 commit a75ef16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void CheckDisposedOrStarted()
/// Gets a value that indicates whether the handler is supported on the current platform.
/// </summary>
[UnsupportedOSPlatformGuard("browser")]
public static bool IsSupported => !OperatingSystem.IsBrowser();
public static bool IsSupported => !(OperatingSystem.IsBrowser() || OperatingSystem.IsWasi());

public bool UseCookies
{
Expand Down

0 comments on commit a75ef16

Please sign in to comment.