diff options
author | pommicket <pommicket@gmail.com> | 2025-08-29 04:32:41 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-08-29 04:33:17 -0400 |
commit | 4e8ec7840f89d0c1cc48e39535211be9755e8c1b (patch) | |
tree | c6cd2bb3b94fdaceb3c3ff2c9c8b49c501c2fedd /src/main.rs | |
parent | af16284921b65f92601279001531862d1c80cee7 (diff) |
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index ffa1892..3c03b46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,13 +78,13 @@ impl ConnectionSettings { } } if conn.state == 4 { - // 90B is more than long enough for our response + // 128B is more than long enough for our response write!( - &mut buffer[..90], + &mut buffer[..128], "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\n{addr}\n\0" ) .expect("?? writing address to buffer failed??"); - let length = buffer[..90] + let length = buffer[..128] .iter() .position(|&c| c == 0) .expect("?? no null byte even though we just wrote one??"); |