Differences From Artifact [4b90142579]:
- File utils/ofhttp/OFHTTP.m — part of check-in [ce7b92cbcf] at 2015-05-07 19:17:46 on branch trunk — utils/ofhttp: Fix a wrong type (user: js, size: 14084) [annotate] [blame] [check-ins using]
To Artifact [e352c0cdcc]:
- File
utils/ofhttp/OFHTTP.m
— part of check-in
[625377fca5]
at
2015-05-16 11:16:27
on branch trunk
— utils/ofhttp: Default User-Agent to OFHTTP
It can still be overridden with -HUser-Agent:. (user: js, size: 14140) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
94 95 96 97 98 99 100 | - init { self = [super init]; @try { _method = OF_HTTP_REQUEST_METHOD_GET; | | > > | 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | - init { self = [super init]; @try { _method = OF_HTTP_REQUEST_METHOD_GET; _clientHeaders = [[OFMutableDictionary alloc] initWithObject: @"OFHTTP" forKey: @"User-Agent"]; _HTTPClient = [[OFHTTPClient alloc] init]; [_HTTPClient setDelegate: self]; _buffer = [self allocMemoryWithSize: [OFSystemInfo pageSize]]; } @catch (id e) { [self release]; |
︙ | ︙ |