diff --git a/lib/std/http/Client.zig b/lib/std/http/Client.zig index 7a700e9a8583c6a93cc0bd90870c07c3f5b1a947..5d6a75cb2841135491729d34e366bb9d837cc120 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;