When delegating to an URL, don't quote the query part again.
authorJan Lahoda <jlahoda@netbeans.org>
Thu, 27 Sep 2012 07:44:23 +0200
changeset 8852929557a8dd8
parent 884 90c118cdf459
child 886 12e3b5e28bba
When delegating to an URL, don't quote the query part again.
remoting/server/hudson/src/main/java/org/netbeans/modules/jackpot30/hudson/IndexGlobalAction.java
     1.1 --- a/remoting/server/hudson/src/main/java/org/netbeans/modules/jackpot30/hudson/IndexGlobalAction.java	Wed Sep 26 21:11:25 2012 +0200
     1.2 +++ b/remoting/server/hudson/src/main/java/org/netbeans/modules/jackpot30/hudson/IndexGlobalAction.java	Thu Sep 27 07:44:23 2012 +0200
     1.3 @@ -78,7 +78,7 @@
     1.4          InputStream in = null;
     1.5          OutputStream out = null;
     1.6          try {
     1.7 -            URI delegateURI = new URI("http", null, "localhost", 9998, "/index" + req.getRestOfPath(), req.getQueryString(), null);
     1.8 +            URI delegateURI = new URI("http://localhost:9998/index" + req.getRestOfPath() + "?" + req.getQueryString());
     1.9              URLConnection inConnection = delegateURI.toURL().openConnection();
    1.10              in = inConnection.getInputStream();
    1.11