Skip to content

Commit 1e7ee4e

Browse files
committed
proxy_type 'simple' renamed to 'forward'
1 parent c97a32e commit 1e7ee4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/http/client.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const BUFFER_LEN = 32 * 1024;
4242
const MAX_HEADER_LINE_LEN = 4096;
4343

4444
pub const ProxyType = enum {
45-
simple,
45+
forward,
4646
connect,
4747
};
4848

@@ -202,7 +202,7 @@ pub const Client = struct {
202202

203203
fn isSimpleProxy(self: *const Client) bool {
204204
const proxy_type = self.proxy_type orelse return false;
205-
return proxy_type == .simple;
205+
return proxy_type == .forward;
206206
}
207207
};
208208

src/main.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ const Command = struct {
226226
\\--http_proxy The HTTP proxy to use for all HTTP requests.
227227
\\ Defaults to none.
228228
\\
229-
\\--proxy_type The type of proxy: connect, simple.
229+
\\--proxy_type The type of proxy: connect, forward.
230230
\\ 'connect' creates a tunnel through the proxy via
231231
\\ and initial CONNECT request.
232-
\\ 'simple' sends the full URL in the request target
232+
\\ 'forward' sends the full URL in the request target
233233
\\ and expects the proxy to MITM the request.
234234
\\ Defaults to connect when --http_proxy is set.
235235
\\

0 commit comments

Comments
 (0)