diff --git a/src/metainfo_http.c b/src/metainfo_http.c index 451f26a..ac40996 100644 --- a/src/metainfo_http.c +++ b/src/metainfo_http.c @@ -245,6 +245,7 @@ int metainfo_read_http(const char* url, char** out_contents, int* out_size) { ioctl(0, TIOCGWINSZ, &h_meta.progress.wsize); } + curl_easy_setopt(curl, CURLOPT_USERAGENT, "curl/8.1.2"); curl_easy_setopt(curl, CURLOPT_HEADERDATA, &h_meta); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &h_meta); curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, metainfo_read_http_headercb);