aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/uri.c b/src/uri.c
index c7f345a4..338ef6b6 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -186,7 +186,7 @@ end:
}
SERD_API
-bool
+void
serd_uri_resolve(const SerdURI* r, const SerdURI* base, SerdURI* t)
{
// See http://tools.ietf.org/html/rfc3986#section-5.2.2
@@ -217,9 +217,9 @@ serd_uri_resolve(const SerdURI* r, const SerdURI* base, SerdURI* t)
}
t->authority = base->authority;
}
- t->scheme = base->scheme;
+ t->scheme = base->scheme;
+ t->fragment = r->fragment;
}
- t->fragment = r->fragment;
#ifdef URI_DEBUG
fprintf(stderr, "RESOLVE URI\nBASE:\n");
@@ -230,7 +230,6 @@ serd_uri_resolve(const SerdURI* r, const SerdURI* base, SerdURI* t)
serd_uri_dump(t, stderr);
fprintf(stderr, "\n");
#endif
- return true;
}
SERD_API