Skip to content

Commit

Permalink
set user agent when submitting a block
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidVorick committed Oct 22, 2015
1 parent d6b413d commit 4ef5698
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions network.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ int submit_header(uint8_t *header) {
CURLcode res;

curl_easy_reset(curl);
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Sia-Agent");
curl_easy_setopt(curl, CURLOPT_URL, submit_url);
curl_easy_setopt(curl, CURLOPT_POST, 1);
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, 80);
Expand Down

0 comments on commit 4ef5698

Please sign in to comment.