Skip to content

Lightpanda: the headless browser designed for AI and automation

`header_parser`: `Cursor.skipSpaces` now skips HTAB

Halil Durak50076f538afc
diff --git a/src/network/header_parser.zig b/src/network/header_parser.zig
index 9801b334f..cc268b18a 100644
--- a/src/network/header_parser.zig
+++ b/src/network/header_parser.zig
@@ -344,8 +344,8 @@ pub const Cursor = struct {
}
/// Moves the cursor until no leading spaces there are.
- pub inline fn skipSpaces(cursor: *Cursor) void {
- while (cursor.end - cursor.current() > 0 and cursor.char() == ' ') : (cursor.advance(1)) {}
+ pub fn skipSpaces(cursor: *Cursor) void {
+ while (cursor.end - cursor.current() > 0 and (cursor.char() == ' ' or cursor.char() == '\t')) : (cursor.advance(1)) {}
}
/// Returns true if `Cursor` reached end.