summaryrefslogtreecommitdiff
path: root/lib
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
commitddf52402dd5511617718e3bf0f68f9e23fa645ba (patch)
tree673012ca721092c36d36f8a30cbba991bb11add9 /lib
parentdef2c780de137e810a8b4ae82147141525f23f21 (diff)
Added host header override to errors in HTTP test
Diffstat (limited to 'lib')
-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