]> gitweb.ps.run Git - zighttp/blobdiff - src/http.zig
remove unnecessary pointer attribute
[zighttp] / 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;