From fe9937f3319286ceafdcc6cac4606ab0a9146088 Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Tue, 12 Sep 2023 20:05:58 +0200 Subject: [PATCH] return unsupported in case of arrays or unsupported types --- src/zap.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zap.zig b/src/zap.zig index 6454915..cc8f340 100644 --- a/src/zap.zig +++ b/src/zap.zig @@ -654,7 +654,7 @@ pub fn Fiobj2HttpParam(o: fio.FIOBJ, a: std.mem.Allocator, dupe_string: bool) !? fio.FIOBJ_T_STRING => { const fiostr = fio.fiobj_obj2cstr(data); if (fiostr.len == 0) { - data_slice = "(zap: epmty string data)"; + data_slice = "(zap: empty string data)"; std.log.warn("WARNING: HTTP param binary file has empty string object\n", .{}); } else { data_slice = fiostr.data[0..fiostr.len]; @@ -665,6 +665,7 @@ pub fn Fiobj2HttpParam(o: fio.FIOBJ, a: std.mem.Allocator, dupe_string: bool) !? }, else => { // don't know what to do + return .{ .Unsupported = null }; }, }