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.
2 parents df0e18c + 69fde96 commit 0562207Copy full SHA for 0562207
spec/rack/reverse_proxy_spec.rb
@@ -119,6 +119,15 @@ def app
119
expect(headers["x-additional-info"]).to be_nil
120
end
121
122
+ it "the response header includes content-length" do
123
+ body = "this is the test body"
124
+ stub_request(:any, "example.com/test/stuff").to_return(
125
+ :body => body, :headers => { "Content-Length" => "10" }
126
+ )
127
+ get "/test/stuff"
128
+ expect(last_response.headers["Content-Length"]).to eq(body.length.to_s)
129
+ end
130
+
131
describe "with non-default port" do
132
def app
133
Rack::ReverseProxy.new(dummy_app) do
0 commit comments