summaryrefslogtreecommitdiff
path: root/libwaitress
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-05-25 19:43:54 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-05-25 19:52:32 +0200
commitdbdef6859c59b5b04d3c68f3e664e27932d556c4 (patch)
tree74076128b7b0bb293cc1648bcc41492d15f7e352 /libwaitress
parent38eafbf8bf2aaae998aae3801350cdc437fd9cd2 (diff)
downloadpianobar-windows-dbdef6859c59b5b04d3c68f3e664e27932d556c4.tar.gz
pianobar-windows-dbdef6859c59b5b04d3c68f3e664e27932d556c4.tar.bz2
pianobar-windows-dbdef6859c59b5b04d3c68f3e664e27932d556c4.zip
waitress: Downgrade to HTTP/1.0
I don't need you, Transfer-Encoding: chunked. Nobody wants you here, Transfer-Encoding: chunked. Get lost. Thanks. Oh, btw: Fixes "Unknown." error in PianoGetGenreStations ()
Diffstat (limited to 'libwaitress')
-rw-r--r--libwaitress/src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libwaitress/src/main.c b/libwaitress/src/main.c
index a9acbd7..06daf24 100644
--- a/libwaitress/src/main.c
+++ b/libwaitress/src/main.c
@@ -338,12 +338,12 @@ WaitressReturn_t WaitressFetchCall (WaitressHandle_t *waith) {
/* send request */
if (WaitressProxyEnabled (waith)) {
snprintf (writeBuf, sizeof (writeBuf),
- "%s http://%s:%s%s HTTP/1.1\r\nProxy-Connection: close\r\n",
+ "%s http://%s:%s%s HTTP/1.0\r\n",
(waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"),
waith->host, waith->port, waith->path);
} else {
snprintf (writeBuf, sizeof (writeBuf),
- "%s %s HTTP/1.1\r\nConnection: close\r\n",
+ "%s %s HTTP/1.0\r\n",
(waith->method == WAITRESS_METHOD_GET ? "GET" : "POST"),
waith->path);
}