From 586638b2d2f8ac3f70950204c2e017db79857e23 Mon Sep 17 00:00:00 2001 From: Josh Avant Date: Thu, 3 Oct 2013 19:00:16 -0700 Subject: [PATCH] Change `AFHTTPRequestOperation` `-(id)initWithCoder:` to call the `super` implementation This change allows an instance of AFHTTPRequestOperation to be more completely archived. --- AFNetworking/AFHTTPRequestOperation.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AFNetworking/AFHTTPRequestOperation.m b/AFNetworking/AFHTTPRequestOperation.m index a255615..7765f2a 100644 --- a/AFNetworking/AFHTTPRequestOperation.m +++ b/AFNetworking/AFHTTPRequestOperation.m @@ -123,9 +123,7 @@ static dispatch_group_t http_request_operation_completion_group() { #pragma mark - NSCoding - (id)initWithCoder:(NSCoder *)aDecoder { - NSURLRequest *request = [aDecoder decodeObjectForKey:@"request"]; - - self = [self initWithRequest:request]; + self = [super initWithCoder:aDecoder]; if (!self) { return nil; }