diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/std/http/Client.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/std/http/Client.zig b/lib/std/http/Client.zig index 03ec7610f7..2a7cb4ffca 100644 --- a/lib/std/http/Client.zig +++ b/lib/std/http/Client.zig @@ -1282,14 +1282,12 @@ pub fn connectTcp(client: *Client, host: []const u8, port: u16, protocol: Connec return &conn.data; } -pub const ConnectUnixError = Allocator.Error || std.os.SocketError || error{ NameTooLong, Unsupported } || std.os.ConnectError; +pub const ConnectUnixError = Allocator.Error || std.os.SocketError || error{NameTooLong} || std.os.ConnectError; /// Connect to `path` as a unix domain socket. This will reuse a connection if one is already open. /// /// This function is threadsafe. pub fn connectUnix(client: *Client, path: []const u8) ConnectUnixError!*Connection { - if (!net.has_unix_sockets) return error.Unsupported; - if (client.connection_pool.findConnection(.{ .host = path, .port = 0, |
