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 0be2747 commit b683d9aCopy full SHA for b683d9a
spec/rack/reverse_proxy_spec.rb
@@ -63,6 +63,15 @@ def app
63
expect(last_response.body).to eq("Proxied App2")
64
end
65
66
+ it "returns headers from proxied app as strings" do
67
+ stub_request(:get, "http://example.com/test").to_return(
68
+ :body => "Proxied App",
69
+ :headers => { "Proxied-Header" => "TestValue" }
70
+ )
71
+ get "/test"
72
+ expect(last_response.headers["Proxied-Header"]).to eq("TestValue")
73
+ end
74
+
75
it "sets the Host header w/o default port" do
76
stub_request(:any, "example.com/test/stuff")
77
get "/test/stuff"
0 commit comments