diff --git a/Sources/Vapor/Engine/EngineClient.swift b/Sources/Vapor/Engine/EngineClient.swift index a363797cb0..d61d0a38eb 100644 --- a/Sources/Vapor/Engine/EngineClient.swift +++ b/Sources/Vapor/Engine/EngineClient.swift @@ -114,8 +114,6 @@ public final class EngineClient: Client, Service { ) req.http.headers[.host] = hostname return client.send(req.http).flatMap(to: Response.self) { httpRes in - tlsClient.close() - return try self.response(from: httpRes, for: req, maxRedirects: redirects) } } @@ -136,8 +134,6 @@ public final class EngineClient: Client, Service { ) req.http.headers[.host] = hostname return client.send(req.http).flatMap(to: Response.self) { httpRes in - tcpClient.close() - return try self.response(from: httpRes, for: req, maxRedirects: redirects) } }