summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorJames Hannah <james.hannah@bytemark.co.uk>2014-12-02 11:37:37 +0000
committerJames Hannah <james.hannah@bytemark.co.uk>2014-12-02 11:37:37 +0000
commit0beca5c4b92359221a2f170e1daec89d815b5e8c (patch)
treec95cbf8b0049429b9ce8d15913c88aeb5f2ea29f /lib/custodian
parent9f8f3a22dc8808a53558e99ab7ea0ba90c7466e1 (diff)
Added host header override to errors in HTTP test
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/protocoltest/http.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb
index 3ceedb3..cc171a6 100644
--- a/lib/custodian/protocoltest/http.rb
+++ b/lib/custodian/protocoltest/http.rb
@@ -321,6 +321,9 @@ module Custodian
end
if errors.length > 0
+ if @host_override
+ errors << "Host header was overridden as Host: #{@host_override}"
+ end
@error = errors.join("\n")
return false
end