Skip to content

Commit

Permalink
Remove dead code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamRagstad committed Oct 14, 2023
1 parent f32abb7 commit d16805a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/engine/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,6 @@ impl WXRuntime {

/// Handle an incoming request.
fn handle_request(&self, mut stream: TcpStream, addr: SocketAddr) {
// let mut buf = [0; 1024];
// if let Ok(_) = stream.read(&mut buf) {
// info(self.mode, &format!("(Runtime) Request from: {}\n{}", addr, String::from_utf8_lossy(&buf)));
// let response = b"HTTP/1.1 200 OK\r\n\r\nHello, world!";
// stream.write(response).unwrap();
// stream.flush().unwrap();
// } else { warning(format!("(Runtime) Request read failure: {}", addr)); }
if let Some(request) = parse_request_tcp::<()>(&stream) {
info(self.mode, &format!("(Runtime) Request from: {}\n{:#?}", stream.peer_addr().unwrap(), &request));
let response = Response::builder().status(200).body("Hello, world!").unwrap();
Expand Down

0 comments on commit d16805a

Please sign in to comment.