]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] http: don't report the "haproxy" word on the monitoring response
authorWilly Tarreau <w@1wt.eu>
Wed, 11 May 2011 14:00:54 +0000 (16:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 May 2011 14:31:43 +0000 (16:31 +0200)
Some people like to make the monitoring URL testable from unsafe locations.
Reporting haproxy's existence there can sometimes be problematic. This patch
should not be backported to 1.4 because it is possible, eventhough unlikely,
that some scripts rely on this word to appear there.

src/proto_http.c

index 379471efa8dfd89b295eed11857a080970c66543..af8adc92ce9d17943d5c8f7e46634dfce1eb8a04 100644 (file)
@@ -75,7 +75,7 @@ const char HTTP_200[] =
        "Connection: close\r\n"
        "Content-Type: text/html\r\n"
        "\r\n"
-       "<html><body><h1>200 OK</h1>\nHAProxy: service ready.\n</body></html>\n";
+       "<html><body><h1>200 OK</h1>\nService ready.\n</body></html>\n";
 
 const struct chunk http_200_chunk = {
        .str = (char *)&HTTP_200,