{
HttpVersion ver = request.getRequestLine().getHttpVersion();
if (ver.equals(HttpVersion.HTTP_1_0)) {
return false;
} else {
SimpleResponse response = new SimpleResponse();
response.setStatusLine(ver, HttpStatus.SC_HTTP_VERSION_NOT_SUPPORTED);
response.addHeader(new Header("Proxy-Connection", "close"));
conn.setKeepAlive(false);
// Make sure the request body is fully consumed
request.getBodyBytes();
conn.writeResponse(response);
return true;