ObjFW  Diff

Differences From Artifact [be1d7818d7]:

To Artifact [063245d810]:


35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
}

- init
{
	self = [super init];

	requestType = OF_HTTP_REQUEST_TYPE_GET;
	headers = [OFDictionary
	    dictionaryWithObject: @"Something using ObjFW "
				  @"<https://webkeks.org/objfw/>"
			  forKey: @"User-Agent"];

	return self;
}

- (void)dealloc
{
	[URL release];







|
|
|
|







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
}

- init
{
	self = [super init];

	requestType = OF_HTTP_REQUEST_TYPE_GET;
	headers = [[OFDictionary alloc]
	    initWithObject: @"Something using ObjFW "
			    @"<https://webkeks.org/objfw/>"
		    forKey: @"User-Agent"];

	return self;
}

- (void)dealloc
{
	[URL release];
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
				    redirects - 1];
			}

			[s_headers setObject: value
				      forKey: key];
		}

		data = [[sock readDataArrayTillEndOfStream] retain];

		if ([s_headers objectForKey: @"Content-Length"] != nil) {
			intmax_t cl;

			cl = [[s_headers objectForKey: @"Content-Length"]
			    decimalValue];








|







258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
				    redirects - 1];
			}

			[s_headers setObject: value
				      forKey: key];
		}

		data = [sock readDataArrayTillEndOfStream];

		if ([s_headers objectForKey: @"Content-Length"] != nil) {
			intmax_t cl;

			cl = [[s_headers objectForKey: @"Content-Length"]
			    decimalValue];