ObjFW  Check-in [625377fca5]

Overview
Comment:utils/ofhttp: Default User-Agent to OFHTTP

It can still be overridden with -HUser-Agent:.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 625377fca5bea96140a82be5591c42e427fa72c1ee94ea3191b7e88f02d888a5
User & Date: js on 2015-05-16 11:16:27
Other Links: manifest | tags
Context
2015-05-16
12:44
configure: Go back to using -std=gnu* check-in: 989363c9fd user: js tags: trunk
11:16
utils/ofhttp: Default User-Agent to OFHTTP check-in: 625377fca5 user: js tags: trunk
11:15
+[sleepForTimeInterval:]: Just return on negative check-in: 41d9be6b3b user: js tags: trunk
Changes

Modified utils/ofhttp/OFHTTP.m from [4b90142579] to [e352c0cdcc].

94
95
96
97
98
99
100
101


102
103
104
105
106
107
108
- init
{
	self = [super init];

	@try {
		_method = OF_HTTP_REQUEST_METHOD_GET;

		_clientHeaders = [[OFMutableDictionary alloc] init];



		_HTTPClient = [[OFHTTPClient alloc] init];
		[_HTTPClient setDelegate: self];

		_buffer = [self allocMemoryWithSize: [OFSystemInfo pageSize]];
	} @catch (id e) {
		[self release];







|
>
>







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];