aboutsummaryrefslogtreecommitdiff
path: root/src/router.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-26 06:01:22 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-26 06:01:22 -0700
commit77a0f335cb0f18af4e03713583b98e0e1b024b33 (patch)
treef6ed90a992cb46677ab597bba4f6db2fbfcba3b1 /src/router.zig
parent31cfcf2c9f40520dac72530ec62e765d3a0de221 (diff)
downloadbun-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.zig2
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;