]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
gpst: Mangle User-Agent haeder in one place
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 15 Aug 2017 15:15:51 +0000 (16:15 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 15 Aug 2017 15:51:55 +0000 (16:51 +0100)
commit4387e14cf4183d4603b42d5e98583904d8579f3c
treeebb558b71cdce8d9179ca672b983d6c6fdef7596
parentda0a15a19b465dbf5a7080768e68a22d3de7578e
gpst: Mangle User-Agent haeder in one place

If we really need to override it for *all* requests, let's just do that
in gpst_common_headers(). Although maybe it'd be better just to ensure
that vpninfo->useragent is set appropriately in the first place?

It's not clear what we're gaining by preserving ->urlpath either, since
it never gets used as-is; we only *ever* override it with our own
strings. So we might as well just free the old one and set it.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
auth-globalprotect.c
gpst.c