diff options
| author | 2022-06-26 06:01:22 -0700 | |
|---|---|---|
| committer | 2022-06-26 06:01:22 -0700 | |
| commit | 77a0f335cb0f18af4e03713583b98e0e1b024b33 (patch) | |
| tree | f6ed90a992cb46677ab597bba4f6db2fbfcba3b1 /src/router.zig | |
| parent | 31cfcf2c9f40520dac72530ec62e765d3a0de221 (diff) | |
| download | bun-77a0f335cb0f18af4e03713583b98e0e1b024b33.tar.gz bun-77a0f335cb0f18af4e03713583b98e0e1b024b33.tar.zst bun-77a0f335cb0f18af4e03713583b98e0e1b024b33.zip | |
wip ReadableStream for HTTP(s) Server
Diffstat (limited to 'src/router.zig')
| -rw-r--r-- | src/router.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.zig b/src/router.zig index 2ae4b98fb..b482cf18c 100644 --- a/src/router.zig +++ b/src/router.zig @@ -213,7 +213,7 @@ pub const Routes = struct { } fn match(this: *Routes, allocator: std.mem.Allocator, pathname_: string, comptime MatchContext: type, ctx: MatchContext) ?*Route { - var pathname = std.mem.trimLeft(u8, pathname_, "/"); + const pathname = std.mem.trimLeft(u8, pathname_, "/"); if (pathname.len == 0) { return this.index; |
