diff options
author | Jamie Nguyen <jamie.nguyen@bytemark.co.uk> | 2017-09-20 07:54:35 +0100 |
---|---|---|
committer | Jamie Nguyen <jamie.nguyen@bytemark.co.uk> | 2017-09-20 07:54:35 +0100 |
commit | 5bfbf71c0b08647ca93460a2eda01f3221716003 (patch) | |
tree | 964267e4abdc80685a5f7bdceeae5687d0b3bdd7 /lib/custodian/protocoltest | |
parent | 005013d98d742989d3c000b04054e15bb0482a69 (diff) | |
parent | 99394d4a174239ece0aeba5e0a1a5755fd2ec45b (diff) |
Merge branch '19-user-agent' into 'master'
Resolve "Can custodian send a user agent string please"
Closes #19
See merge request !13
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 # |