mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
updated bindataformpost example
This commit is contained in:
parent
a2776aa138
commit
5adf7d0e02
1 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,13 @@ const Handler = struct {
|
||||||
},
|
},
|
||||||
else => {
|
else => {
|
||||||
// might be a string param, we don't care
|
// might be a string param, we don't care
|
||||||
|
// let's just get it as string
|
||||||
|
if (r.getParamStr(kv.key.str, Handler.alloc, false)) |maybe_str| {
|
||||||
|
const value: []const u8 = if (maybe_str) |s| s.str else "(no value)";
|
||||||
|
std.log.debug(" {s} = {s}", .{ kv.key.str, value });
|
||||||
|
} else |err| {
|
||||||
|
std.log.err("Error: {any}\n", .{err});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue