1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

cosmetics

This commit is contained in:
Rene Schallner 2024-02-22 22:54:46 +01:00
parent 680e981d13
commit 1f6e945c08
3 changed files with 2 additions and 4 deletions

View file

@ -53,8 +53,8 @@ pub fn main() !void {
// let's get param "one" by name
std.debug.print("\n", .{});
if (r.getParamSlice("one")) |maybe_str| {
std.log.info("Param one = {s}", .{maybe_str});
if (r.getParamSlice("one")) |value| {
std.log.info("Param one = {s}", .{value});
} else {
std.log.info("Param one not found!", .{});
}

View file

@ -766,7 +766,6 @@ pub const ParamSliceIterator = struct {
amp_it: std.mem.TokenIterator(u8, .scalar),
pub fn init(query: []const u8) @This() {
// const query = r.query orelse "";
return .{
.amp_it = std.mem.tokenizeScalar(u8, query, '&'),
};

View file

@ -57,7 +57,6 @@ test "http parameters" {
break :blk null;
};
// paramSlices = zap.Request.ParamSliceIterator.init(r);
paramSlices = r.getParamSlices();
}
};