diff --git a/lib/std/http/Client.zig b/lib/std/http/Client.zig index 7a700e9a85..5d6a75cb28 100644 --- a/lib/std/http/Client.zig +++ b/lib/std/http/Client.zig @@ -382,7 +382,7 @@ pub const Connection = struct { return c.stream_reader.getStream(); } - fn host(c: *Connection) []u8 { + pub fn host(c: *Connection) []u8 { return switch (c.protocol) { .tls => { if (disable_tls) unreachable;