From 578f409a037e3fc0a6506714841247f51883ddea Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 16 Nov 2013 15:14:58 +0100 Subject: [PATCH] BB#106: fix CONNECT requsts with IPv6 literal addresses as host. Use extract_url instead of the old extract_ssl_url: extract_url is generic and handles ipv6 literal addresses correctly. Signed-off-by: Michael Adam (cherry picked from commit 9f43cfd4882a7af973901ccdae2b056e2ef6e943) --- src/reqs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reqs.c b/src/reqs.c index 991cedc..b4f124a 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -424,7 +424,7 @@ BAD_REQUEST_ERROR: goto fail; } } else if (strcmp (request->method, "CONNECT") == 0) { - if (extract_ssl_url (url, request) < 0) { + if (extract_url (url, HTTP_PORT_SSL, request) < 0) { indicate_http_error (connptr, 400, "Bad Request", "detail", "Could not parse URL", "url", url, NULL);