We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e1c3d1 commit 8f1c341Copy full SHA for 8f1c341
src/client/encode.rs
@@ -41,6 +41,9 @@ impl Encoder {
41
url.push_str(query);
42
}
43
44
+ // A client sending a CONNECT request MUST consists of only the host
45
+ // name and port number of the tunnel destination, separated by a colon.
46
+ // See: https://tools.ietf.org/html/rfc7231#section-4.3.6
47
if req.method() == Method::Connect {
48
let host = req.url().host_str();
49
let host = host.ok_or_else(|| format_err!("Missing hostname"))?;
0 commit comments