diff --git a/VERSION.txt b/VERSION.txt index 42749263e05..5a588980a83 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1,4 +1,6 @@ jetty-7.5.0-SNAPSHOT + + 353623 Added new methods to HttpExchange + + 353624 HttpURI accepts java.net.URI object in constructor + 354080 ServletContextHandler allows to replace any subordinate handler when restarted jetty-7.5.0.RC1 - 19 August 2011 diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpDestination.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpDestination.java index 986da9773e1..6d243383db4 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpDestination.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpDestination.java @@ -678,7 +678,7 @@ public class HttpDestination implements Dumpable setMethod(HttpMethods.CONNECT); setVersion(exchange.getVersion()); String serverHostAndPort = serverAddress.toString(); - setURI(serverHostAndPort); + setRequestURI(serverHostAndPort); addRequestHeader(HttpHeaders.HOST, serverHostAndPort); addRequestHeader(HttpHeaders.PROXY_CONNECTION, "keep-alive"); addRequestHeader(HttpHeaders.USER_AGENT, "Jetty-Client"); diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java index 8ced04a810a..e97cc611654 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpExchange.java @@ -15,6 +15,7 @@ package org.eclipse.jetty.client; import java.io.IOException; import java.io.InputStream; +import java.net.URI; import java.util.concurrent.atomic.AtomicInteger; import org.eclipse.jetty.client.security.SecurityListener; @@ -38,8 +39,8 @@ import org.eclipse.jetty.util.thread.Timeout; * * This object encapsulates: *