aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uri.c b/src/uri.c
index 997489ba..c7f345a4 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -258,7 +258,10 @@ serd_uri_serialise(const SerdURI* uri, SerdSink sink, void* stream)
}
WRITE_COMPONENT("", uri->scheme, ":");
- WRITE_COMPONENT("//", uri->authority, "");
+ if (uri->authority.buf) {
+ WRITE("//", 2);
+ WRITE(uri->authority.buf, uri->authority.len);
+ }
if (uri->path_base.len) {
if (!uri->path.buf && (uri->fragment.buf || uri->query.buf)) {
WRITE_COMPONENT("", uri->path_base, "");