From 773ce089c116f831ea48368d4918c608b3326ba9 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 10 Aug 2013 07:30:41 +1000 Subject: [PATCH] Fix http client --- proxy/src/main/java/net/md_5/bungee/http/HttpClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java b/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java index c4ffc5390..740e67163 100644 --- a/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java +++ b/proxy/src/main/java/net/md_5/bungee/http/HttpClient.java @@ -63,7 +63,7 @@ public class HttpClient HttpRequest request = new DefaultHttpRequest( HttpVersion.HTTP_1_1, HttpMethod.GET, path ); request.headers().set( HttpHeaders.Names.HOST, uri.getHost() ); - future.channel().write( request ); + future.channel().writeAndFlush( request ); } else { callback.done( null, future.cause() );