URL(EncodeSet): bring back component value

Lost and found.
This commit is contained in:
Halil Durak authored and nikneym committed 2026-06-25 18:05:48 +03:00
1 parent a12d781d4a
commit 84fe33c679
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ pub fn resolve(
return allocator.dupeZ(u8, href.slice());
}
const EncodeSet = enum { path, query, query_legacy, userinfo, fragment };
const EncodeSet = enum { path, query, query_legacy, userinfo, fragment, component };
pub fn percentEncodeSegment(allocator: Allocator, segment: []const u8, comptime encode_set: EncodeSet) ![]const u8 {
// Check if encoding is needed