summaryrefslogtreecommitdiff
path: root/src/libwaitress
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-11-10 10:54:53 +0100
committerLars-Dominik Braun <lars@6xq.net>2011-11-10 10:54:53 +0100
commit1a19723ad07aee17d7169869e3ade75e1495070f (patch)
tree79ebff79bcd84639da2dc9d433d4998c6843d468 /src/libwaitress
parentbf5660d5ee4ebcef6e3006a8ee0b41b50828aade (diff)
downloadpianobar-windows-1a19723ad07aee17d7169869e3ade75e1495070f.tar.gz
pianobar-windows-1a19723ad07aee17d7169869e3ade75e1495070f.tar.bz2
pianobar-windows-1a19723ad07aee17d7169869e3ade75e1495070f.zip
waitress: Use WAITRESS_HTTP_VERSION
Diffstat (limited to 'src/libwaitress')
-rw-r--r--src/libwaitress/waitress.c5
1 files changed, 3 insertions, 2 deletions
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);