Skip to content

Commit 9443325

Browse files
committed
Insecure site is redirect.
1 parent d7ae5a9 commit 9443325

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/async/http/proxy_spec.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@
180180
response = proxy_client.get("/index")
181181
expect(response).to_not be_failure
182182

183-
# If a connection is persistent, it will go back into the pool when the response is closed.
184-
expect(response.read).to_not be_empty
185-
expect(response.body).to be_nil
183+
# The response would be a redirect:
184+
expect(response).to be_redirection
185+
response.finish
186186

187-
# The proxy.connnect response is not being released correctly - after pipe is done.
187+
# The proxy.connnect response is not being released correctly - after pipe is done:
188188
expect(proxy_client.pool).to_not be_empty
189189
proxy_client.close
190190
expect(proxy_client.pool).to be_empty

0 commit comments

Comments
 (0)