Made url join more robust (#179)
This commit is contained in:
Родитель
e2bbcd11d2
Коммит
d5de3419b6
|
@ -9,6 +9,11 @@ public class UriUtils {
|
|||
if (ensureTrailingSlash && !path.endsWith("/")) {
|
||||
path += "/";
|
||||
}
|
||||
if (!path.startsWith("/"))
|
||||
{
|
||||
path = "/" + path;
|
||||
}
|
||||
|
||||
return new URIBuilder(uri).setPath(path).build().toString();
|
||||
}
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -32,7 +32,7 @@
|
|||
</developers>
|
||||
|
||||
<properties>
|
||||
<revision>2.8.0</revision> <!-- CHANGE THIS to adjust project version-->
|
||||
<revision>2.8.1</revision> <!-- CHANGE THIS to adjust project version-->
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче