We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb29497 commit 8195c78Copy full SHA for 8195c78
spec/rack/reverse_proxy_spec.rb
@@ -59,13 +59,14 @@ def app
59
describe "with preserve host turned off" do
60
def app
61
Rack::ReverseProxy.new(dummy_app) do
62
- reverse_proxy '/test', 'http://example.com/'
+ reverse_proxy '/test', 'http://example.com/', {:preserve_host => false}
63
end
64
65
66
it "should not set the Host header" do
67
stub_request(:any, 'example.com/test/stuff')
68
get '/test/stuff'
69
+ a_request(:get, 'http://example.com/test/stuff').with(:headers => {"Host" => "example.com"}).should_not have_been_made
70
a_request(:get, 'http://example.com/test/stuff').should have_been_made
71
72
0 commit comments