From: William Lallemand Date: Thu, 19 Aug 2021 13:55:19 +0000 (+0200) Subject: MINOR: httpclient/cli: change the User-Agent to "HAProxy" X-Git-Tag: v2.5-dev5~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2484da5ebcea7a687632111148f6d0bc1a84bd7a;p=thirdparty%2Fhaproxy.git MINOR: httpclient/cli: change the User-Agent to "HAProxy" Change the User-Agent from "HAProxy HTTP client" to "HAProxy" as the previous name is not valid according to RFC 7231#5.5.3. This patch fixes issue #1354. --- diff --git a/src/http_client.c b/src/http_client.c index ea97860493..b949e09d2b 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -45,7 +45,7 @@ static struct applet httpclient_applet; */ static struct http_hdr default_httpclient_hdrs[2] = { - { .n = IST("User-Agent"), .v = IST("HAProxy HTTP client") }, + { .n = IST("User-Agent"), .v = IST("HAProxy") }, { .n = IST_NULL, .v = IST_NULL }, };