diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-18 12:14:56 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-18 12:14:56 +0200 |
commit | 71064f98988a490ae972e36533d6af05557ed3c1 (patch) | |
tree | 0b4abed8d474977d8361ef5537c9b4479c3125fe /libpiano | |
parent | d3f7a7e363e2e8d1c8ce05108f3361b48ca954e6 (diff) | |
download | pianobar-71064f98988a490ae972e36533d6af05557ed3c1.tar.gz pianobar-71064f98988a490ae972e36533d6af05557ed3c1.tar.bz2 pianobar-71064f98988a490ae972e36533d6af05557ed3c1.zip |
piano: Fix PianoHttpGet's setopts by forcing a GET request
Diffstat (limited to 'libpiano')
-rw-r--r-- | libpiano/src/http.c | 3 |
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); |