ObjFW  Diff

Differences From Artifact [4bbd6ecaac]:

To Artifact [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