From 09f5d34899416d950f9f51611c1757b189cd1ebd Mon Sep 17 00:00:00 2001 From: Daniel Abramov Date: Tue, 17 Nov 2020 11:17:56 +0100 Subject: [PATCH] use 3 redirects as default for `connect` --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index 0b70af3..1b20980 100644 --- a/src/client.rs +++ b/src/client.rs @@ -160,7 +160,7 @@ pub fn connect_with_config( /// use `client` instead. There is no need to enable the "tls" feature if you don't call /// `connect` since it's the only function that uses native_tls. pub fn connect(request: Req) -> Result<(WebSocket, Response)> { - connect_with_config(request, None, 0) + connect_with_config(request, None, 3) } fn connect_to_some(addrs: &[SocketAddr], uri: &Uri, mode: Mode) -> Result {