diff options
Diffstat (limited to '')
-rw-r--r-- | src/deps/picohttp.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deps/picohttp.zig b/src/deps/picohttp.zig index f4a662c28..6c00c185b 100644 --- a/src/deps/picohttp.zig +++ b/src/deps/picohttp.zig @@ -72,7 +72,7 @@ pub const Request = struct { ); // Leave a sentinel value, for JavaScriptCore support. - @intToPtr([*]u8, @ptrToInt(path.ptr))[path.len] = 0; + if (rc > -1) @intToPtr([*]u8, @ptrToInt(path.ptr))[path.len] = 0; return switch (rc) { -1 => error.BadRequest, |