1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

renamed unsupported_hash

This commit is contained in:
Rene Schallner 2023-09-12 18:48:28 +02:00
parent ae98019e60
commit 8dbe0671a6

View file

@ -551,7 +551,7 @@ pub const HttpParamValueType = enum {
Float, Float,
String, String,
Unsupported, Unsupported,
Unsupported_Hash, Hash_Binfile,
Unsupported_Array, Unsupported_Array,
}; };
@ -564,7 +564,7 @@ pub const HttpParam = union(HttpParamValueType) {
/// value will always be null /// value will always be null
Unsupported: ?void, Unsupported: ?void,
/// we assume hashes are because of file transmissions /// we assume hashes are because of file transmissions
Unsupported_Hash: HttpParamBinaryFile, Hash_Binfile: HttpParamBinaryFile,
/// value will always be null /// value will always be null
Unsupported_Array: ?void, 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], .filename = filename.data[0..filename.len],
.mimetype = mimetype.data[0..mimetype.len], .mimetype = mimetype.data[0..mimetype.len],
.data = data_slice, .data = data_slice,
} }; } };
} else { } else {
return .{ .Unsupported_Hash = .{} }; return .{ .Hash_Binfile = .{} };
} }
}, },
else => .{ .Unsupported = null }, else => .{ .Unsupported = null },