fixed crash when writing to broken pipe
All checks were successful
Restart Website Service / restart_service (push) Successful in 29s

This commit is contained in:
Snorre Ettrup Altschul 2025-04-01 21:59:39 +02:00
parent 5f0d70011a
commit b5b4a9438c

View file

@ -278,6 +278,6 @@ fn handle_connection(mut stream: TcpStream) {
None => format!("HTTP/1.1 404{0}{0}", CLRF),
};
stream.write_all(response.as_bytes()).unwrap();
stream.write_all(&response_content).unwrap();
let _ = stream.write_all(response.as_bytes());
let _ = stream.write_all(&response_content);
}