]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: httpclient/cli: change the User-Agent to "HAProxy"
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 19 Aug 2021 13:55:19 +0000 (15:55 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 19 Aug 2021 13:55:19 +0000 (15:55 +0200)
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.

src/http_client.c

index ea978604932ef471bf89408c027c69f26f364ff9..b949e09d2b834033abfeeb46947eae7ab123dd37 100644 (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 },
 };