getHttpHeaders(request).add("host", hostDomain);
}
Response response = new Response(request);
connector.handle(request, response);
if (!usingTcp && request.getMethod().equals(Method.HEAD)) {
response.setEntity(new WrapperRepresentation(response.getEntity()) {
@Override
public ReadableByteChannel getChannel() throws IOException {
return NioUtils.getChannel(getStream());
}