@@ -40,12 +40,10 @@ #import "OFUnsupportedVersionException.h" #import "autorelease.h" #import "macros.h" -Class of_http_client_tls_socket_class = Nil; - static OF_INLINE void normalize_key(char *str_) { uint8_t *str = (uint8_t*)str_; BOOL firstLetter = YES; @@ -144,17 +142,16 @@ URL: URL]; if ([scheme isEqual: @"http"]) sock = [OFTCPSocket socket]; else { - if (of_http_client_tls_socket_class == Nil) + if (of_tls_socket_class == Nil) @throw [OFUnsupportedProtocolException exceptionWithClass: [self class] URL: URL]; - sock = [[[of_http_client_tls_socket_class alloc] init] - autorelease]; + sock = [[[of_tls_socket_class alloc] init] autorelease]; } [delegate client: self didCreateSocket: sock request: request];