summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);