Github user garydgregory commented on a diff in the pull request:
https://github.com/apache/httpclient/pull/64#discussion_r99966404
--- Diff:
httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java ---
@@ -492,8 +492,8 @@ public String toString() {
private static String normalizePath(final String path) {
String s = path;
- if (s == null) {
- return "/";
+ if (s == null || "".equals(s)) {
+ return "";
--- End diff --
"".equals(s) would be better as s.isEmpty()
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]