mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
cosmetics
This commit is contained in:
parent
680e981d13
commit
1f6e945c08
3 changed files with 2 additions and 4 deletions
|
@ -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!", .{});
|
||||
}
|
||||
|
|
|
@ -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, '&'),
|
||||
};
|
||||
|
|
|
@ -57,7 +57,6 @@ test "http parameters" {
|
|||
break :blk null;
|
||||
};
|
||||
|
||||
// paramSlices = zap.Request.ParamSliceIterator.init(r);
|
||||
paramSlices = r.getParamSlices();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue