From 1a19723ad07aee17d7169869e3ade75e1495070f Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 10 Nov 2011 10:54:53 +0100 Subject: waitress: Use WAITRESS_HTTP_VERSION --- src/libwaitress/waitress.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libwaitress') diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c index 5a220c5..b5d30b6 100644 --- a/src/libwaitress/waitress.c +++ b/src/libwaitress/waitress.c @@ -810,8 +810,9 @@ static WaitressReturn_t WaitressConnect (WaitressHandle_t *waith) { if (WaitressProxyEnabled (waith)) { char buf[256]; size_t size; - snprintf (buf, sizeof (buf), "CONNECT %s:%s HTTP/1.1\r\n\r\n", - waith->url.host, WaitressDefaultPort (&waith->url)); + snprintf (buf, sizeof (buf), "CONNECT %s:%s HTTP/" + WAITRESS_HTTP_VERSION "\r\n\r\n", + waith->url.host, WaitressDefaultPort (&waith->url)); WaitressOrdinaryWrite (waith, buf, strlen (buf)); WaitressOrdinaryRead (waith, buf, sizeof (buf)-1, &size); -- cgit v1.2.3