diff --git a/src/main/java/org/jboss/netty/example/http/HttpClient.java b/src/main/java/org/jboss/netty/example/http/HttpClient.java index 43592f8117..e4991d74c7 100644 --- a/src/main/java/org/jboss/netty/example/http/HttpClient.java +++ b/src/main/java/org/jboss/netty/example/http/HttpClient.java @@ -88,7 +88,7 @@ public class HttpClient { // Send the HTTP request. HttpRequest request = new DefaultHttpRequest( - HttpVersion.HTTP_1_0, HttpMethod.GET, uri.toASCIIString()); + HttpVersion.HTTP_1_1, HttpMethod.GET, uri.toASCIIString()); request.addHeader(HttpHeaders.Names.HOST, host); CookieEncoder httpCookieEncoder = new CookieEncoder(false); httpCookieEncoder.addCookie("my-cookie", "foo");