We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1d3ffd commit c7ee3e7Copy full SHA for c7ee3e7
src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java
@@ -163,7 +163,7 @@ public final static URI createUri(String u) {
163
} else if (isNonEmpty(path) && path.charAt(0) != '/') {
164
throw new IllegalArgumentException("The URI path, of the URI " + uri
165
+ ". must start with a '/'");
166
- } else if (path.isEmpty()) {
+ } else if (!isNonEmpty(path)) {
167
return URI.create(u + "/");
168
}
169
0 commit comments