ObjFW  Check-in [a5933a2224]

Overview
Comment:Fix a missing (auto)release.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.6
Files: files | file ages | folders
SHA3-256: a5933a2224cc8d53ae0984ad24ea329dd6b1b3fa6368af9d79fbef0c7ad6bb79
User & Date: js on 2012-03-07 22:22:06
Other Links: branch diff | manifest | tags
Context
2012-03-13
20:19
Improve -[OFDictionary isEqual:]. check-in: c32750da12 user: js tags: 0.6
2012-03-07
22:22
Fix a missing (auto)release. check-in: a5933a2224 user: js tags: 0.6
2012-03-04
22:12
Add missing files to Xcode project. check-in: 86b49f91d8 user: js tags: 0.6
Changes

Modified src/OFHTTPRequest.m from [4bbd6ecaac] to [d53d806d31].

392
393
394
395
396
397
398
399


400
401
402
403



404
405
406
407
408
409
410
392
393
394
395
396
397
398

399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414







-
+
+




+
+
+








	[serverHeaders makeImmutable];

	result = [[OFHTTPRequestResult alloc] initWithStatusCode: status
							 headers: serverHeaders
							    data: data];

	if (status != 200 && status != 301 && status != 302 && status != 303)
	if (status != 200 && status != 301 && status != 302 && status != 303) {
		[result release];
		@throw [OFHTTPRequestFailedException
		    exceptionWithClass: isa
			   HTTPRequest: self
				result: result];
	}

	[pool release];

	return [result autorelease];
}
@end

@implementation OFHTTPRequestResult
- initWithStatusCode: (short)status