Fix panic on invalid authority
This commit is contained in:
committed by
Martin Algesten
parent
661853b95d
commit
e5fa36f98e
@@ -202,4 +202,12 @@ mod tests {
|
||||
);
|
||||
assert_eq!("text/html", resp.content_type());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "tls")]
|
||||
fn connect_https_invalid_name() {
|
||||
let resp = get("https://example.com{REQUEST_URI}/").call();
|
||||
assert_eq!(400, resp.status());
|
||||
assert!(resp.synthetic());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user