Skip to content

Commit

Permalink
http: Add new X-* HTTP headers
Browse files Browse the repository at this point in the history
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 <cernekee@gmail.com>
  • Loading branch information
cernekee committed Oct 28, 2012
1 parent 4beeace commit 723ea46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http.c
Expand Up @@ -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,
Expand Down

0 comments on commit 723ea46

Please sign in to comment.