File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -806,12 +806,12 @@ pub const Request = struct {
806806 log .warn (.http , "not implemented" , .{ .feature = "async tls connect" });
807807 }
808808
809- if (self ._connection_from_keepalive and
810- ((self ._client .isProxy () and self ._proxy_secure ) or (! self ._client .isForwardProxy () and self ._request_secure )))
811- {
812- // If the connection came from the keepalive pool, than we already have a TLS Connection.
813- async_handler . conn . protocol = .{ . encrypted = .{ . conn = & connection . tls .? . nonblocking } };
814- // and we 're already connected
809+ if (self ._connection_from_keepalive ) {
810+ if ((self ._client .isProxy () and self ._proxy_secure ) or (! self ._client .isForwardProxy () and self ._request_secure )) {
811+ // If the connection came from the keepalive pool, than we already have a TLS Connection.
812+ async_handler . conn . protocol = .{ . encrypted = .{ . conn = & connection . tls .? . nonblocking } };
813+ }
814+ // We 're already connected
815815 async_handler .pending_connect = false ;
816816 return async_handler .conn .connected ();
817817 }
You can’t perform that action at this time.
0 commit comments