From 0040567fa5f03f282c2b3af2f4a14ada1e4e63ae Mon Sep 17 00:00:00 2001 From: fanqq Date: Mon, 15 Jun 2015 17:33:08 +0800 Subject: [PATCH] update healthcheck --- .../com/ctrip/zeus/service/build/conf/HealthCheckConf.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ctrip/zeus/service/build/conf/HealthCheckConf.java b/src/main/java/com/ctrip/zeus/service/build/conf/HealthCheckConf.java index 1d93b654..50b0381b 100644 --- a/src/main/java/com/ctrip/zeus/service/build/conf/HealthCheckConf.java +++ b/src/main/java/com/ctrip/zeus/service/build/conf/HealthCheckConf.java @@ -51,9 +51,9 @@ public class HealthCheckConf { .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") - .append(" UserAgent: SLB HealthCheck ").append("\\r\\n\\r\\n\"").append(";\n") + .append("Connection:keep-alive\\r\\n") + .append("Host:").append(vs.getDomains().get(0).getName().trim()).append("\\r\\n") + .append("UserAgent:SLB_HealthCheck").append("\\r\\n\\r\\n\"").append(";\n") .append("check_http_expect_alive http_2xx http_3xx").append(";\n"); }