X-Git-Url: https://gitweb.ps.run/zighttp/blobdiff_plain/abb5a6c230ae69c59fd7c9a36ca817a6b3711ed2..be44ead60d7aaca2d965e5ef6a41af424af4bf65:/src/http.zig 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;