Skip to content

Commit

Permalink
renamed unsupported_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed Sep 12, 2023
1 parent ae98019 commit 8dbe067
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/zap.zig
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ pub const HttpParamValueType = enum {
Float,
String,
Unsupported,
Unsupported_Hash,
Hash_Binfile,
Unsupported_Array,
};

Expand All @@ -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,
};
Expand Down Expand Up @@ -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 },
Expand Down

0 comments on commit 8dbe067

Please sign in to comment.