ObjFW  Check-in [fde986d949]

Overview
Comment:Fix a missing (auto)release.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fde986d949c26a57c3f594c486f3c443d15b887a4e8096147c7a80559dafd105
User & Date: js on 2012-03-07 22:22:06
Other Links: manifest | tags
Context
2012-03-07
22:33
Implement HTTP/1.1 in OFHTTPRequest. check-in: 326634c95d user: js tags: trunk
22:22
Fix a missing (auto)release. check-in: fde986d949 user: js tags: trunk
2012-03-06
16:17
Clean up the method replacement mess. check-in: 2d08ba105c user: js tags: trunk
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

	[serverHeaders makeImmutable];

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

	if (status != 200 && status != 301 && status != 302 && status != 303)

		@throw [OFHTTPRequestFailedException
		    exceptionWithClass: isa
			   HTTPRequest: self
				result: result];




	return [result autorelease];
}
@end

@implementation OFHTTPRequestResult
- initWithStatusCode: (short)status







|
>




>
>
>







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) {
		[result release];
		@throw [OFHTTPRequestFailedException
		    exceptionWithClass: isa
			   HTTPRequest: self
				result: result];
	}

	[pool release];

	return [result autorelease];
}
@end

@implementation OFHTTPRequestResult
- initWithStatusCode: (short)status