diff options
author | 2017-11-13 16:05:54 +0100 | |
---|---|---|
committer | 2017-11-13 22:12:44 +0100 | |
commit | 6074f76f7dd32d272b6de801f9638d8ebca1cbbf (patch) | |
tree | cc3127827e740ce9b7848764b673fbb41635e303 /src/tss.c | |
parent | 542ef27e70c52dbe76ba00a44b0069844c945ed2 (diff) | |
download | idevicerestore-6074f76f7dd32d272b6de801f9638d8ebca1cbbf.tar.gz idevicerestore-6074f76f7dd32d272b6de801f9638d8ebca1cbbf.tar.bz2 |
Define a constant for user agent string instead of duplicate strings
Diffstat (limited to 'src/tss.c')
-rw-r--r-- | src/tss.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -970,7 +970,7 @@ plist_t tss_request_send(plist_t tss_request, const char* server_url_string) { curl_easy_setopt(handle, CURLOPT_WRITEDATA, response); curl_easy_setopt(handle, CURLOPT_HTTPHEADER, header); curl_easy_setopt(handle, CURLOPT_POSTFIELDS, request); - curl_easy_setopt(handle, CURLOPT_USERAGENT, "InetURL/1.0"); + curl_easy_setopt(handle, CURLOPT_USERAGENT, USER_AGENT_STRING); curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, strlen(request)); if (server_url_string) { curl_easy_setopt(handle, CURLOPT_URL, server_url_string); |