Skip to content

Commit 61d28f4

Browse files
committed
Update head byte limit msg
1 parent 964610f commit 61d28f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ where
149149
// Prevent CWE-400 DDOS with large HTTP Headers.
150150
ensure!(
151151
buf.len() < MAX_HEAD_LENGTH,
152-
"Head byte length limit exceeded"
152+
"Head byte length should be less than 8kb"
153153
);
154154

155155
// We've hit the end delimiter of the stream.

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ where
356356
// Prevent CWE-400 DDOS with large HTTP Headers.
357357
ensure!(
358358
buf.len() < MAX_HEAD_LENGTH,
359-
"Head byte length limit exceeded"
359+
"Head byte length should be less than 8kb"
360360
);
361361

362362
// We've hit the end delimiter of the stream.

0 commit comments

Comments
 (0)