From 7884d562110959bf3672d0bdcb30e6b6ef86f210 Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Tue, 12 Sep 2023 18:19:12 +0200 Subject: [PATCH] log data type --- src/zap.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zap.zig b/src/zap.zig index bbf5e94..c51980d 100644 --- a/src/zap.zig +++ b/src/zap.zig @@ -632,6 +632,7 @@ pub fn Fiobj2HttpParam(o: fio.FIOBJ, a: std.mem.Allocator, dupe_string: bool) !? if (data_len < 0) { std.log.warn("WARNING: HTTP param binary file size negative: {d}\n", .{data_len}); + std.log.warn("FIOBJ_TYPE of data is: {d}\n", .{fio.fiobj_type(data)}); // try to read anyway std.log.warn("WARNING: Attempting to read anyway\n", .{}); @@ -645,7 +646,6 @@ pub fn Fiobj2HttpParam(o: fio.FIOBJ, a: std.mem.Allocator, dupe_string: bool) !? } else { if (data_buf.len != data_len) { std.log.warn("WARNING: HTTP param binary file size mismatch: should {d}, is: {d}\n", .{ data_len, data_buf.len }); - data_slice = "(zap: invalid data: negative size)"; } if (data_buf.len > 0) {