This commit is contained in:
fanqq 2015-04-16 17:29:55 +08:00
parent a3d8893bb4
commit 9e3d9dae26

View file

@ -28,9 +28,9 @@ public class HealthCheckConf {
.append(" type=http").append(";\n")
.append(" check_keepalive_requests 100").append(";\n")
.append(" check_http_send \"")
.append("GET ").append(h.getUri()).append(" HTTP/1.0\r\n")
.append(" Connection: keep-alive\r\n")
.append(" Host: ").append(vs.getDomains().get(0).getName()).append("\r\n\r\n\"").append(";\n")
.append("GET ").append(h.getUri()).append(" HTTP/1.0\r")
.append(" Connection: keep-alive\r")
.append(" Host: ").append(vs.getDomains().get(0).getName()).append("\r\"").append(";\n")
.append("check_http_expect_alive http_2xx http_3xx").append(";\n");
return b.toString();
}