Skip to content

Commit 15d4778

Browse files
committed
im stupid
1 parent 63de987 commit 15d4778

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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.4"
3+
version = "0.5.5"
44
edition = "2021"
55

66
[dependencies]

src/routing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pub async fn handle_client(
2222

2323
loop {
2424
let bytes_read = reader.read_line(&mut line).await;
25-
line.clear();
2625
let bytes_read = match bytes_read {
2726
Ok(v) => v,
2827
Err(_) => {
@@ -34,6 +33,7 @@ pub async fn handle_client(
3433
}
3534

3635
request.push_str(&line);
36+
line.clear();
3737
if request.contains("\r\n\r\n") {
3838
break;
3939
}

0 commit comments

Comments
 (0)