From fd98b9e26fcc77300ec3bd92a472f16575e812fc Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 20 Sep 2017 09:25:34 +0300 Subject: Added a User-Agent to our HTTP/HTTPS checks. --- lib/custodian/protocoltest/http.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 0bf1a68..5f013df 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -360,6 +360,9 @@ module Custodian c = Curl::Easy.new(test_url) + # setup a user-agent. + c.headers["User-Agent"] = "custodian/protocol-tester" + c.resolve_mode = resolve_mode # -- cgit v1.2.1