Fix http client
This commit is contained in:
parent
a07eba7965
commit
773ce089c1
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user