From: patrick-scho Date: Sun, 16 Mar 2025 16:18:22 +0000 (+0100) Subject: remove unnecessary pointer attribute X-Git-Url: https://gitweb.ps.run/zighttp/commitdiff_plain/be44ead60d7aaca2d965e5ef6a41af424af4bf65 remove unnecessary pointer attribute --- 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;