From 26e659a69e260523938b37f6025b90e391b9a724 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 10 Nov 2011 21:08:47 +0100 Subject: waitress: Don't send full url to server We CONNECT to server through proxy and can use paths here. Closes #179 --- src/libwaitress/waitress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c index b5d30b6..8bb519a 100644 --- a/src/libwaitress/waitress.c +++ b/src/libwaitress/waitress.c @@ -854,7 +854,7 @@ static WaitressReturn_t WaitressSendRequest (WaitressHandle_t *waith) { } /* send request */ - if (WaitressProxyEnabled (waith)) { + if (WaitressProxyEnabled (waith) && !waith->url.tls) { snprintf (buf, WAITRESS_BUFFER_SIZE, "%s http://%s:%s/%s HTTP/" WAITRESS_HTTP_VERSION "\r\n", (waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"), -- cgit v1.2.3