aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorNameless <truemedian@gmail.com>2023-03-06 23:35:35 -0600
committerNameless <truemedian@gmail.com>2023-03-09 14:55:13 -0600
commit0a4130f364c2714b206257d0cf589103da823407 (patch)
tree6c790af4ce7c8c98cca5e1114602a103d8a06ca1 /lib/std/net.zig
parentfd2f906d1ede2b65ba21eec59137b2d4b676eedc (diff)
downloadzig-0a4130f364c2714b206257d0cf589103da823407.tar.gz
zig-0a4130f364c2714b206257d0cf589103da823407.zip
std.http: handle relative redirects
Diffstat (limited to 'lib/std/net.zig')
-rw-r--r--lib/std/net.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig
index cf112cbab9..7222433fd5 100644
--- a/lib/std/net.zig
+++ b/lib/std/net.zig
@@ -741,9 +741,9 @@ pub fn tcpConnectToAddress(address: Address) TcpConnectToAddressError!Stream {
return Stream{ .handle = sockfd };
}
-const GetAddressListError = std.mem.Allocator.Error || std.fs.File.OpenError || std.fs.File.ReadError || std.os.SocketError || std.os.BindError || error {
+const GetAddressListError = std.mem.Allocator.Error || std.fs.File.OpenError || std.fs.File.ReadError || std.os.SocketError || std.os.BindError || error{
// TODO: break this up into error sets from the various underlying functions
-
+
TemporaryNameServerFailure,
NameServerFailure,
AddressFamilyNotSupported,
@@ -760,7 +760,7 @@ const GetAddressListError = std.mem.Allocator.Error || std.fs.File.OpenError ||
Incomplete,
InvalidIpv4Mapping,
InvalidIPAddressFormat,
-
+
InterfaceNotFound,
FileSystem,
};