]> gitweb.ps.run Git - zighttp/commitdiff
remove unnecessary pointer attribute
authorpatrick-scho <patrick.schoenberger@posteo.de>
Sun, 16 Mar 2025 16:18:22 +0000 (17:18 +0100)
committerpatrick-scho <patrick.schoenberger@posteo.de>
Sun, 16 Mar 2025 16:18:22 +0000 (17:18 +0100)
src/http.zig

index 2c47d1df0d8ec6d43afefd609395357341b3299c..b6c4cf59f7ef364f609d0559b87ee91602ebf840 100644 (file)
@@ -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;