Skip to content

Commit 63de987

Browse files
committed
continue with error or end of stream
1 parent 223eb8b commit 63de987

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rusty-live-server"
3-
version = "0.5.3"
3+
version = "0.5.4"
44
edition = "2021"
55

66
[dependencies]

src/routing.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ pub async fn handle_client(
2626
let bytes_read = match bytes_read {
2727
Ok(v) => v,
2828
Err(_) => {
29-
return;
29+
break;
3030
}
3131
};
3232
if bytes_read == 0 {
33-
return;
33+
break;
3434
}
3535

3636
request.push_str(&line);

0 commit comments

Comments
 (0)