mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 06:49:50 +02:00
Don't send disabled headers
This commit is contained in:
@@ -112,6 +112,9 @@ async fn send_request(
|
|||||||
if h.name.is_empty() && h.value.is_empty() {
|
if h.name.is_empty() && h.value.is_empty() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if h.enabled == false {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let header_name = match HeaderName::from_bytes(h.name.as_bytes()) {
|
let header_name = match HeaderName::from_bytes(h.name.as_bytes()) {
|
||||||
Ok(n) => n,
|
Ok(n) => n,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user