all url tests passing
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 5m1s
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 5m1s
This commit is contained in:
parent
9fd98c176a
commit
978bb783e3
|
@ -55,7 +55,11 @@ pub fn encodeInternal(
|
||||||
rc = try encodeInternal(allocator, parent, field_name, first, obj.*, writer, options);
|
rc = try encodeInternal(allocator, parent, field_name, first, obj.*, writer, options);
|
||||||
} else {
|
} else {
|
||||||
if (!first) _ = try writer.write("&");
|
if (!first) _ = try writer.write("&");
|
||||||
try writer.print("{s}{s}={any}", .{ parent, field_name, obj });
|
// @compileLog(@typeInfo(@TypeOf(obj)));
|
||||||
|
if (ti.child == []const u8 or ti.child == u8)
|
||||||
|
try writer.print("{s}{s}={s}", .{ parent, field_name, obj })
|
||||||
|
else
|
||||||
|
try writer.print("{s}{s}={any}", .{ parent, field_name, obj });
|
||||||
rc = false;
|
rc = false;
|
||||||
},
|
},
|
||||||
.Struct => if (std.mem.eql(u8, "", field_name)) {
|
.Struct => if (std.mem.eql(u8, "", field_name)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user