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 EEF20200C22 for ; Tue, 7 Feb 2017 07:11:51 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ED9C4160B62; Tue, 7 Feb 2017 06:11:51 +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 43B23160B56 for ; Tue, 7 Feb 2017 07:11:51 +0100 (CET) Received: (qmail 20402 invoked by uid 500); 7 Feb 2017 06:11:50 -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 20391 invoked by uid 99); 7 Feb 2017 06:11:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2017 06:11:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0342EC0C68 for ; Tue, 7 Feb 2017 06:11:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.198 X-Spam-Level: X-Spam-Status: No, score=-1.198 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id kebxpaHmXYCk for ; Tue, 7 Feb 2017 06:11:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 56F4F5F1E9 for ; Tue, 7 Feb 2017 06:11:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5E1FCE026E for ; Tue, 7 Feb 2017 06:11:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6551525286 for ; Tue, 7 Feb 2017 06:11:42 +0000 (UTC) Date: Tue, 7 Feb 2017 06:11:42 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1810) URIBuilder.toString() always adds '/' to path, even with query parameters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Feb 2017 06:11:52 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15855401#comment-15855401 ] ASF GitHub Bot commented on HTTPCLIENT-1810: -------------------------------------------- GitHub user Coderec opened a pull request: https://github.com/apache/httpcore/pull/37 [HTTPCLIENT-1810] URIBuilder.toString() always adds '/' to path, even with query parameters When the path is null or '', URIBuilder.normalizePath() should return '' rather than '/'. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Coderec/httpcore cuibaosen/HTTPCLIENT-1810 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/httpcore/pull/37.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #37 ---- commit 2fa5e61bd7ceed7fc3b79db100db6586c6da7bf5 Author: CuiBaosen Date: 2017-02-07T06:08:36Z When the path is null or '', URIBuilder.normalizePath() should return '' rather than '/'. ---- > URIBuilder.toString() always adds '/' to path, even with query parameters > ------------------------------------------------------------------------- > > Key: HTTPCLIENT-1810 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1810 > Project: HttpComponents HttpClient > Issue Type: Bug > Affects Versions: 4.5.3 > Reporter: Osvaldo Pinali Doederlein > > I get results like this: > http://a.io:999/?p1=v1&p2=v2 > previously, it was correct > http://a.io:999?p1=v1&p2=v2 -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org