diff --git a/src/http/client.zig b/src/http/client.zig index 859e2827..d1d4227e 100644 --- a/src/http/client.zig +++ b/src/http/client.zig @@ -42,7 +42,7 @@ const BUFFER_LEN = 32 * 1024; const MAX_HEADER_LINE_LEN = 4096; pub const ProxyType = enum { - simple, + forward, connect, }; @@ -202,7 +202,7 @@ pub const Client = struct { fn isSimpleProxy(self: *const Client) bool { const proxy_type = self.proxy_type orelse return false; - return proxy_type == .simple; + return proxy_type == .forward; } }; diff --git a/src/main.zig b/src/main.zig index 41a97373..c26d4082 100644 --- a/src/main.zig +++ b/src/main.zig @@ -226,10 +226,10 @@ const Command = struct { \\--http_proxy The HTTP proxy to use for all HTTP requests. \\ Defaults to none. \\ - \\--proxy_type The type of proxy: connect, simple. + \\--proxy_type The type of proxy: connect, forward. \\ 'connect' creates a tunnel through the proxy via \\ and initial CONNECT request. - \\ 'simple' sends the full URL in the request target + \\ 'forward' sends the full URL in the request target \\ and expects the proxy to MITM the request. \\ Defaults to connect when --http_proxy is set. \\