From ad0be6cfbe9eb0256f78ce50f0c0d99c1be5d925 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 12 Jul 2011 17:16:08 +1000 Subject: [PATCH] Longpoll is not supposed to use POST and this could be leading to longpoll failures. --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index 68118e87..2be8a3b4 100644 --- a/util.c +++ b/util.c @@ -255,7 +255,8 @@ json_t *json_rpc_call(CURL *curl, const char *url, curl_easy_setopt(curl, CURLOPT_USERPWD, userpass); curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); } - curl_easy_setopt(curl, CURLOPT_POST, 1); + if (!longpoll) + curl_easy_setopt(curl, CURLOPT_POST, 1); if (opt_protocol) applog(LOG_DEBUG, "JSON protocol request:\n%s\n", rpc_req);