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.
This commit is contained in:
William Lallemand 2021-08-19 15:55:19 +02:00
parent 03a4eb154f
commit 2484da5ebc

View File

@ -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 },
};