Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BD080200C23 for ; Wed, 8 Feb 2017 01:35:35 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BBA03160B68; Wed, 8 Feb 2017 00:35:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0AC8C160B3E for ; Wed, 8 Feb 2017 01:35:34 +0100 (CET) Received: (qmail 58580 invoked by uid 500); 8 Feb 2017 00:35:34 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 58564 invoked by uid 99); 8 Feb 2017 00:35:33 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2017 00:35:33 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C4A3BDFBDB; Wed, 8 Feb 2017 00:35:33 +0000 (UTC) From: Coderec To: dev@hc.apache.org Reply-To: dev@hc.apache.org References: In-Reply-To: Subject: [GitHub] httpclient pull request #64: [HTTPCLIENT-1810] URIBuilder.toString() always ... Content-Type: text/plain Message-Id: <20170208003533.C4A3BDFBDB@git1-us-west.apache.org> Date: Wed, 8 Feb 2017 00:35:33 +0000 (UTC) archived-at: Wed, 08 Feb 2017 00:35:35 -0000 Github user Coderec commented on a diff in the pull request: https://github.com/apache/httpclient/pull/64#discussion_r99967058 --- 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 -- Hi garygregory, s == null || "".equals(s) has been changed to TextUtils.isBlank(s), which would be better. isn't it? --- 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 infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org