@@ -379,7 +379,7 @@ static int probe_rpc(struct rpc_state *rpc)
379379 curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0 );
380380 curl_easy_setopt (slot -> curl , CURLOPT_POST , 1 );
381381 curl_easy_setopt (slot -> curl , CURLOPT_URL , rpc -> service_url );
382- curl_easy_setopt (slot -> curl , CURLOPT_ENCODING , "" );
382+ curl_easy_setopt (slot -> curl , CURLOPT_ENCODING , NULL );
383383 curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDS , "0000" );
384384 curl_easy_setopt (slot -> curl , CURLOPT_POSTFIELDSIZE , 4 );
385385 curl_easy_setopt (slot -> curl , CURLOPT_HTTPHEADER , headers );
@@ -435,7 +435,7 @@ static int post_rpc(struct rpc_state *rpc)
435435 curl_easy_setopt (slot -> curl , CURLOPT_NOBODY , 0 );
436436 curl_easy_setopt (slot -> curl , CURLOPT_POST , 1 );
437437 curl_easy_setopt (slot -> curl , CURLOPT_URL , rpc -> service_url );
438- curl_easy_setopt (slot -> curl , CURLOPT_ENCODING , "" );
438+ curl_easy_setopt (slot -> curl , CURLOPT_ENCODING , "gzip " );
439439
440440 headers = curl_slist_append (headers , rpc -> hdr_content_type );
441441 headers = curl_slist_append (headers , rpc -> hdr_accept );
0 commit comments