From 8dbe0671a65e12dc44c7f8eecb5f0e5134adb6f4 Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Tue, 12 Sep 2023 18:48:28 +0200 Subject: [PATCH] renamed unsupported_hash --- src/zap.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zap.zig b/src/zap.zig index d8c8436..6454915 100644 --- a/src/zap.zig +++ b/src/zap.zig @@ -551,7 +551,7 @@ pub const HttpParamValueType = enum { Float, String, Unsupported, - Unsupported_Hash, + Hash_Binfile, Unsupported_Array, }; @@ -564,7 +564,7 @@ pub const HttpParam = union(HttpParamValueType) { /// value will always be null Unsupported: ?void, /// we assume hashes are because of file transmissions - Unsupported_Hash: HttpParamBinaryFile, + Hash_Binfile: HttpParamBinaryFile, /// value will always be null Unsupported_Array: ?void, }; @@ -668,13 +668,13 @@ pub fn Fiobj2HttpParam(o: fio.FIOBJ, a: std.mem.Allocator, dupe_string: bool) !? }, } - return .{ .Unsupported_Hash = .{ + return .{ .Hash_Binfile = .{ .filename = filename.data[0..filename.len], .mimetype = mimetype.data[0..mimetype.len], .data = data_slice, } }; } else { - return .{ .Unsupported_Hash = .{} }; + return .{ .Hash_Binfile = .{} }; } }, else => .{ .Unsupported = null },