Skip to content

Commit c7ee3e7

Browse files
author
Stephane Landelle
committed
Fix build
1 parent c1d3ffd commit c7ee3e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/util/AsyncHttpProviderUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public final static URI createUri(String u) {
163163
} else if (isNonEmpty(path) && path.charAt(0) != '/') {
164164
throw new IllegalArgumentException("The URI path, of the URI " + uri
165165
+ ". must start with a '/'");
166-
} else if (path.isEmpty()) {
166+
} else if (!isNonEmpty(path)) {
167167
return URI.create(u + "/");
168168
}
169169

0 commit comments

Comments
 (0)