Add do not handle non-utf8 headers

This commit is contained in:
DefectingCat
2023-05-06 17:40:13 +08:00
parent 4c802ba781
commit 1108d92d78

View File

@ -92,7 +92,7 @@ pub async fn headers_parser(port: usize) {
Ok(c) => c,
Err(err) => {
error!("Failed to read headers {}", err);
"".to_owned()
return;
}
};
let header: Vec<_> = header.split("\r\n").collect();