Navigation Menu

Skip to content

Commit

Permalink
Handle 'Connection: close' from proxies correctly
Browse files Browse the repository at this point in the history
We should be looking for this as well as (or perhaps *instead* of) the
non-standard Proxy-Connection: header.

cf. http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/web-proxy-connection-header.html

Reported-and-tested-by: Miloslav Švarc <miloslav.svarc@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Dec 2, 2014
1 parent eb34177 commit 58c6789
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http.c
Expand Up @@ -2062,7 +2062,8 @@ static int proxy_hdrs(struct openconnect_info *vpninfo, char *hdr, char *val)
{
int i;

if (!strcasecmp(hdr, "Proxy-Connection")) {
if (!strcasecmp(hdr, "Proxy-Connection") ||
!strcasecmp(hdr, "Connection")) {
if (!strcasecmp(val, "close"))
vpninfo->proxy_close_during_auth = 1;
return 0;
Expand Down

0 comments on commit 58c6789

Please sign in to comment.