From: Kevin Cernekee Date: Sat, 27 Oct 2012 23:18:28 +0000 (-0700) Subject: http: Add new X-* HTTP headers X-Git-Tag: v4.99~26^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=723ea4660e82e8d399135d24ad56bf8c5fd4faa8;p=users%2Fdwmw2%2Fopenconnect.git http: Add new X-* HTTP headers Newer AnyConnect clients (e.g. v3.1) specify X-Aggregate-Auth and X-AnyConnect-Platform. These are required by some gateways. Signed-off-by: Kevin Cernekee --- diff --git a/http.c b/http.c index d0a34b9b..def8b9dd 100644 --- a/http.c +++ b/http.c @@ -439,6 +439,8 @@ static void add_common_headers(struct openconnect_info *vpninfo, struct oc_text_ opt->value, opt->next ? "; " : "\r\n"); } buf_append(buf, "X-Transcend-Version: 1\r\n"); + buf_append(buf, "X-Aggregate-Auth: 1\r\n"); + buf_append(buf, "X-AnyConnect-Platform: %s\r\n", vpninfo->platname); } static int fetch_config(struct openconnect_info *vpninfo, char *fu, char *bu,