summaryrefslogtreecommitdiff
path: root/libpiano/src
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 /libpiano/src
parent38eafbf8bf2aaae998aae3801350cdc437fd9cd2 (diff)
downloadpianobar-dbdef6859c59b5b04d3c68f3e664e27932d556c4.tar.gz
pianobar-dbdef6859c59b5b04d3c68f3e664e27932d556c4.tar.bz2
pianobar-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 'libpiano/src')
-rw-r--r--libpiano/src/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpiano/src/http.c b/libpiano/src/http.c
index acae893..5c74d26 100644
--- a/libpiano/src/http.c
+++ b/libpiano/src/http.c
@@ -58,6 +58,8 @@ PianoReturn_t PianoHttpPost (WaitressHandle_t *waith, const char *postData,
*/
PianoReturn_t PianoHttpGet (WaitressHandle_t *waith, char *retData,
size_t retDataSize) {
+ waith->extraHeaders = NULL;
+ waith->postData = NULL;
waith->method = WAITRESS_METHOD_GET;
if (WaitressFetchBuf (waith, retData, retDataSize) == WAITRESS_RET_OK) {