summaryrefslogtreecommitdiff
path: root/libpiano/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-18 12:14:56 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-18 12:14:56 +0200
commit71064f98988a490ae972e36533d6af05557ed3c1 (patch)
tree0b4abed8d474977d8361ef5537c9b4479c3125fe /libpiano/src
parentd3f7a7e363e2e8d1c8ce05108f3361b48ca954e6 (diff)
downloadpianobar-windows-71064f98988a490ae972e36533d6af05557ed3c1.tar.gz
pianobar-windows-71064f98988a490ae972e36533d6af05557ed3c1.tar.bz2
pianobar-windows-71064f98988a490ae972e36533d6af05557ed3c1.zip
piano: Fix PianoHttpGet's setopts by forcing a GET request
Diffstat (limited to 'libpiano/src')
-rw-r--r--libpiano/src/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpiano/src/http.c b/libpiano/src/http.c
index c633816..ada1510 100644
--- a/libpiano/src/http.c
+++ b/libpiano/src/http.c
@@ -102,6 +102,9 @@ PianoReturn_t PianoHttpGet (CURL *ch, char *url, char **retData) {
PianoReturn_t ret;
curl_easy_setopt (ch, CURLOPT_URL, url);
+ /* remove, as not needed, but set (maybe) set by PianoHttpPost */
+ curl_easy_setopt (ch, CURLOPT_HTTPGET, 1L);
+ curl_easy_setopt (ch, CURLOPT_HTTPHEADER, NULL);
curl_easy_setopt (ch, CURLOPT_WRITEFUNCTION, PianoCurlRetToVar);
memset (curlRet, 0, sizeof (curlRet));
curl_easy_setopt (ch, CURLOPT_WRITEDATA, curlRet);