diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-23 02:29:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-02-23 02:37:11 -0700 |
| commit | d7ac8c8e6552462d3e5e3b4ebce8a4e2ca93be76 (patch) | |
| tree | f7a02320c05d9a8811ac64788c769f2be59b9b4d /lib/std/http.zig | |
| parent | 483b63d301315d6ca2c1c8660f5ec636c7358dc6 (diff) | |
| download | zig-d7ac8c8e6552462d3e5e3b4ebce8a4e2ca93be76.tar.gz zig-d7ac8c8e6552462d3e5e3b4ebce8a4e2ca93be76.zip | |
wasi: don't try to test http
wasi does not support networking
Diffstat (limited to 'lib/std/http.zig')
| -rw-r--r-- | lib/std/http.zig | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/std/http.zig b/lib/std/http.zig index 5898b39da8..00b2c56663 100644 --- a/lib/std/http.zig +++ b/lib/std/http.zig @@ -1,5 +1,3 @@ -const std = @import("std.zig"); - pub const Client = @import("http/Client.zig"); pub const Server = @import("http/Server.zig"); pub const protocol = @import("http/protocol.zig"); @@ -308,6 +306,9 @@ pub const Header = struct { value: []const u8, }; +const builtin = @import("builtin"); +const std = @import("std.zig"); + test { _ = Client; _ = Method; @@ -315,5 +316,7 @@ test { _ = Status; _ = HeadParser; _ = ChunkParser; - _ = @import("http/test.zig"); + if (builtin.os.tag != .wasi) { + _ = @import("http/test.zig"); + } } |
