Commit 24fa8202a799375856ac54a00a8eb757ac81bdcf

Con Kolivas 2011-07-12T22:38:47

Revert "Longpoll is not supposed to use POST and this could be leading to longpoll failures." This reverts commit ad0be6cfbe9eb0256f78ce50f0c0d99c1be5d925. Wrong fix and probably an inappropriate thing to do anyway.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/util.c b/util.c
index 87e3663..f596ad5 100644
--- a/util.c
+++ b/util.c
@@ -257,8 +257,7 @@ 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);
 	}
-	if (!longpoll)
-		curl_easy_setopt(curl, CURLOPT_POST, 1);
+	curl_easy_setopt(curl, CURLOPT_POST, 1);
 
 	if (opt_protocol)
 		applog(LOG_DEBUG, "JSON protocol request:\n%s\n", rpc_req);