diff options
author | June McEnroe <june@causal.agency> | 2019-09-08 16:25:46 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-09-08 16:25:46 -0400 |
commit | 3453aa05a391e3a3c60c5dcaf5f0d9a5458c87a2 (patch) | |
tree | f13c20ef75cd949bb9753e40a320977430db59c3 /bin | |
parent | Add -x flag to title (diff) | |
download | src-3453aa05a391e3a3c60c5dcaf5f0d9a5458c87a2.tar.gz src-3453aa05a391e3a3c60c5dcaf5f0d9a5458c87a2.zip |
Set title User-Agent
Some things don't like you if you don't send one.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/title.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/title.c b/bin/title.c index b922f790..3383e9ca 100644 --- a/bin/title.c +++ b/bin/title.c @@ -158,6 +158,7 @@ int main(int argc, char *argv[]) { if (!curl) errx(EX_SOFTWARE, "curl_easy_init"); curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "title/1.0"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L); |