Don't send disabled headers

This commit is contained in:
Gregory Schier
2023-03-20 00:05:19 -07:00
parent c5f5d72611
commit b16d74d55b

View File

@@ -112,6 +112,9 @@ async fn send_request(
if h.name.is_empty() && h.value.is_empty() {
continue;
}
if h.enabled == false {
continue;
}
let header_name = match HeaderName::from_bytes(h.name.as_bytes()) {
Ok(n) => n,
Err(e) => {