From be44ead60d7aaca2d965e5ef6a41af424af4bf65 Mon Sep 17 00:00:00 2001 From: patrick-scho Date: Sun, 16 Mar 2025 17:18:22 +0100 Subject: [PATCH] remove unnecessary pointer attribute --- src/http.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.zig b/src/http.zig index 2c47d1d..b6c4cf5 100644 --- a/src/http.zig +++ b/src/http.zig @@ -260,7 +260,7 @@ pub const Request = struct { } } - pub fn get_value(self: *Request, name: []const u8) ?[]const u8 { + pub fn get_value(self: Request, name: []const u8) ?[]const u8 { const body = self.body orelse return null; const name_index = std.mem.indexOf(u8, body, name) orelse return null; const eql_index = std.mem.indexOfScalarPos(u8, body, name_index, '=') orelse return null; -- 2.50.1