Fix inverted loop condition which broke multi-line responses to CONNECT.

PR:		194483
Submitted by:	Miłosz Kaniewski <milosz.kaniewski@gmail.com>
MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2016-12-30 14:54:54 +00:00
parent 869d88787d
commit 21ca0912c6

View File

@ -1432,7 +1432,7 @@ http_connect(struct url *URL, struct url *purl, const char *flags)
default:
/* ignore */ ;
}
} while (h < hdr_end);
} while (h > hdr_end);
}
if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 &&
fetch_ssl(conn, URL, verbose) == -1) {