| author | |
| committer | |
| log | 0a8d64bb2fed9a5a79b6c49b91c1efeff4cb19d6 |
| tree | a67972a9d85f8de51bf835596d3b09fb087a527b |
| parent | a4957630082ff3a926f0564148b443c8703cc2f8 |
| signature |
1 files changed, 1 insertions(+), 0 deletions(-)
http.zig+1| ... | ... | @@ -421,6 +421,7 @@ pub const Server = struct { |
| 421 | 421 | while (true) { |
| 422 | 422 | const line = try server.reader.readUntilDelimitersBuf(&scratch_buffer, "\r\n"); |
| 423 | 423 | if (line.len == 0) break; |
| 424 | if (headers.count() == 128) return error.InvalidRequest; | |
| 424 | 425 | const name_end = std.mem.indexOfScalar(u8, line, ':') orelse return error.InvalidRequest; |
| 425 | 426 | const name = line[0..name_end]; |
| 426 | 427 | for (name) |*c| { |