From 485196be1dd4980af450559468b51122287c65f8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 7 Nov 2013 09:09:22 +0100 Subject: add architecture to user agent string --- pacredir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pacredir.c b/pacredir.c index ef2cd31..b448068 100644 --- a/pacredir.c +++ b/pacredir.c @@ -218,7 +218,7 @@ int get_http_code(const char * host, const uint16_t port, const char * url, long /* example.com is redirected, so we tell libcurl to follow redirection */ curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); /* set user agent */ - curl_easy_setopt(curl, CURLOPT_USERAGENT, "pacredir/" VERSION); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "pacredir/" VERSION " (" ARCH ")"); /* do not receive body */ curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); /* ask for filetime */ -- cgit v1.2.3-70-g09d2