Differences From Artifact [27860baf5d]:
- File src/OFHTTPClient.m — part of check-in [634a1461f8] at 2012-12-11 12:27:21 on branch trunk — OFHTTPClient: Small fixes. (user: js, size: 12420) [annotate] [blame] [check-ins using]
To Artifact [f1da42cb60]:
- File
src/OFHTTPClient.m
— part of check-in
[1abe5a111f]
at
2012-12-13 20:53:19
on branch trunk
— Add of_tls_socket_class for 3rd-party TLS libs.
This removes of_http_client_tls_socket_class in favor of having one
symbol for all places where TLS would be desired. (user: js, size: 12344) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
38 39 40 41 42 43 44 | #import "OFTruncatedDataException.h" #import "OFUnsupportedProtocolException.h" #import "OFUnsupportedVersionException.h" #import "autorelease.h" #import "macros.h" | < < | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
#import "OFTruncatedDataException.h"
#import "OFUnsupportedProtocolException.h"
#import "OFUnsupportedVersionException.h"
#import "autorelease.h"
#import "macros.h"
static OF_INLINE void
normalize_key(char *str_)
{
uint8_t *str = (uint8_t*)str_;
BOOL firstLetter = YES;
while (*str != '\0') {
|
| ︙ | ︙ | |||
142 143 144 145 146 147 148 |
@throw [OFUnsupportedProtocolException
exceptionWithClass: [self class]
URL: URL];
if ([scheme isEqual: @"http"])
sock = [OFTCPSocket socket];
else {
| | | < | 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
@throw [OFUnsupportedProtocolException
exceptionWithClass: [self class]
URL: URL];
if ([scheme isEqual: @"http"])
sock = [OFTCPSocket socket];
else {
if (of_tls_socket_class == Nil)
@throw [OFUnsupportedProtocolException
exceptionWithClass: [self class]
URL: URL];
sock = [[[of_tls_socket_class alloc] init] autorelease];
}
[delegate client: self
didCreateSocket: sock
request: request];
[sock connectToHost: [URL host]
|
| ︙ | ︙ |