use 3 redirects as default for `connect`

pull/148/head
Daniel Abramov 4 years ago committed by GitHub
parent a8e06d2b39
commit 09f5d34899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/client.rs

@ -160,7 +160,7 @@ pub fn connect_with_config<Req: IntoClientRequest>(
/// 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<Req: IntoClientRequest>(request: Req) -> Result<(WebSocket<AutoStream>, Response)> {
connect_with_config(request, None, 0)
connect_with_config(request, None, 3)
}
fn connect_to_some(addrs: &[SocketAddr], uri: &Uri, mode: Mode) -> Result<AutoStream> {

Loading…
Cancel
Save