diff options
-rw-r--r-- | src/libwaitress/waitress.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c index 5d37a4e..a971487 100644 --- a/src/libwaitress/waitress.c +++ b/src/libwaitress/waitress.c @@ -820,7 +820,10 @@ static WaitressReturn_t WaitressConnect (WaitressHandle_t *waith) { WaitressReturn_t wRet; snprintf (buf, sizeof (buf), "CONNECT %s:%s HTTP/" - WAITRESS_HTTP_VERSION "\r\n", + WAITRESS_HTTP_VERSION "\r\n" + "Host: %s:%s\r\n" + "Proxy-Connection: close\r\n", + waith->url.host, WaitressDefaultPort (&waith->url), waith->url.host, WaitressDefaultPort (&waith->url)); WRITE_RET (buf, strlen (buf)); |