This commit is contained in:
@@ -207,9 +207,13 @@ fn process_headers(buff: &[u8]) -> anyhow::Result<Option<ProcessHeadersResult>>
|
|||||||
for (num, c) in prefix.as_bytes().iter().enumerate() {
|
for (num, c) in prefix.as_bytes().iter().enumerate() {
|
||||||
buff.insert(pos + 1 + num, *c);
|
buff.insert(pos + 1 + num, *c);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log::warn!("Unable to inject prefix!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log::trace!("Final request: {}", String::from_utf8_lossy(&buff));
|
||||||
|
|
||||||
Ok(Some(ProcessHeadersResult {
|
Ok(Some(ProcessHeadersResult {
|
||||||
target_host: target_host.to_string(),
|
target_host: target_host.to_string(),
|
||||||
buff,
|
buff,
|
||||||
|
|||||||
Reference in New Issue
Block a user