diff options
| author | Nameless <truemedian@gmail.com> | 2023-03-06 23:35:35 -0600 |
|---|---|---|
| committer | Nameless <truemedian@gmail.com> | 2023-03-09 14:55:13 -0600 |
| commit | 0a4130f364c2714b206257d0cf589103da823407 (patch) | |
| tree | 6c790af4ce7c8c98cca5e1114602a103d8a06ca1 /lib/std/net.zig | |
| parent | fd2f906d1ede2b65ba21eec59137b2d4b676eedc (diff) | |
| download | zig-0a4130f364c2714b206257d0cf589103da823407.tar.gz zig-0a4130f364c2714b206257d0cf589103da823407.zip | |
std.http: handle relative redirects
Diffstat (limited to 'lib/std/net.zig')
| -rw-r--r-- | lib/std/net.zig | 6 |
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, }; |
