Tweak the User-Agent header to comply with RFC 2616
This commit is contained in:
parent
5b9fd9c731
commit
6f6b99c0e7
1 changed files with 2 additions and 1 deletions
3
util.c
3
util.c
|
@ -349,7 +349,8 @@ json_t *json_rpc_call(CURL *curl, const char *url,
|
|||
headers = curl_slist_append(headers,
|
||||
"Content-Type: application/json");
|
||||
headers = curl_slist_append(headers, len_hdr);
|
||||
headers = curl_slist_append(headers, "User-Agent: " PACKAGE_STRING);
|
||||
headers = curl_slist_append(headers,
|
||||
"User-Agent: " PACKAGE_NAME "/" PACKAGE_VERSION);
|
||||
headers = curl_slist_append(headers,
|
||||
"X-Mining-Extensions: midstate");
|
||||
headers = curl_slist_append(headers, "Accept:"); /* disable Accept hdr*/
|
||||
|
|
Loading…
Reference in a new issue