1
0
Fork 0
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:
Rene Schallner 2023-09-12 19:16:11 +02:00
parent a2776aa138
commit 5adf7d0e02

View file

@ -42,6 +42,13 @@ const Handler = struct {
},
else => {
// 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});
}
},
}
}