You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c2705f2
Browse filesBrowse the repository at this point in the historyBrowse files
// URI#resolve drops base for opaque URIs, https://github.com/jsonld-java/jsonld-java/issues/232
265
+
if(uri.isOpaque()) {
266
+
returnuri.toString() + pathToResolve;
267
+
}
264
268
// "a base URI [...] does not allow a fragment" (https://tools.ietf.org/html/rfc3986#section-4.3)
265
269
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), uri.getQuery(), null);
266
270
// query string parsing
267
271
if (pathToResolve.startsWith("?")) {
268
272
// drop query, https://tools.ietf.org/html/rfc3986#section-5.2.2: T.query = R.query;
269
273
uri = newURI(uri.getScheme(), uri.getAuthority(), uri.getPath(), null, null);
270
-
// add query to the end manually (as URI.resolve does it wrong)
274
+
// add query to the end manually (as URI#resolve does it wrong)
271
275
returnuri.toString() + pathToResolve;
272
276
} elseif (pathToResolve.startsWith("#")) {
273
-
// add fragment to the end manually (as URI.resolve does it wrong)
277
+
// add fragment to the end manually (as URI#resolve does it wrong)
0 commit comments