about summary refs log tree commit diff stats
path: root/src/types/url.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/url.nim')
-rw-r--r--src/types/url.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types/url.nim b/src/types/url.nim
index 81ae4ea4..4e1a52f7 100644
--- a/src/types/url.nim
+++ b/src/types/url.nim
@@ -791,6 +791,13 @@ func serialize*(path: UrlPath): string {.inline.} =
     result &= '/'
     result &= s
 
+func serialize_unicode*(path: UrlPath): string {.inline.} =
+  if path.opaque:
+    return percentDecode(path.s)
+  for s in path.ss:
+    result &= '/'
+    result &= percentDecode(s)
+
 func serialize*(url: Url, excludefragment = false): string =
   result = url.scheme & ':'
   if url.host.issome: