diff options
author | Steve Kemp <steve@steve.org.uk> | 2017-09-20 09:25:34 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2017-09-20 09:25:34 +0300 |
commit | fd98b9e26fcc77300ec3bd92a472f16575e812fc (patch) | |
tree | a394cab05fafca917dcbf93eb74aadee5fdc0393 /lib/custodian/protocoltest | |
parent | 005013d98d742989d3c000b04054e15bb0482a69 (diff) |
Added a User-Agent to our HTTP/HTTPS checks.
Diffstat (limited to 'lib/custodian/protocoltest')
-rw-r--r-- | lib/custodian/protocoltest/http.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 # |