fn hostname_check() {
    let page = get(
        &["--addr", "[::]:1971", "--hostname", "example.org"],
        addr(1971),
        "gemini://example.com/",
    )
    .expect("could not get page");

    assert_eq!(page.header.status, Status::ProxyRequestRefused);
}
/// - hostname is checked when provided
/// - status for wrong host is "proxy request refused"
hostname is checked when provided
status for wrong host is "proxy request refused"
hostname is checked when provided status for wrong host is " proxy request refused "
fn hostname_check() {
    let page = get(
        &["--addr", "[::]:1971", "--hostname", "example.org"],
        addr(1971),
        "gemini://example.com/",
    )
    .expect("could not get page");
    assert_eq!(page.header.status, Status::ProxyRequestRefused);
}
fn hostname_check ( ) { let page = get ( & [ " " , " " , " " , " " ] , addr ( 1971 ) , " " , ) . expect ( " " ) ; assert_eq ! ( page header status Status ProxyRequestRefused ) ; }
hostname is checked when provided
 status for wrong host is "proxy request refused"
hostname is checked when provided status for wrong host is " proxy request refused "