Skip to content
Browse files

Merge branch 'master' of github.com:MugunthKumar/MKNetworkKit

  • Loading branch information...
2 parents d204641 + 4672036 commit 9b9bcd2ca537b0bc4e183cf09e92d8f7f5528a6f @MugunthKumar committed Jul 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 MKNetworkKit/MKNetworkOperation.m
View
4 MKNetworkKit/MKNetworkOperation.m
@@ -376,6 +376,8 @@ -(void) setState:(MKNetworkOperationState)newState {
- (void)encodeWithCoder:(NSCoder *)encoder
{
[encoder encodeInteger:self.stringEncoding forKey:@"stringEncoding"];
+ [encoder encodeInteger:_postDataEncoding forKey:@"postDataEncoding"];
+
[encoder encodeObject:self.uniqueId forKey:@"uniqueId"];
[encoder encodeObject:self.request forKey:@"request"];
[encoder encodeObject:self.response forKey:@"response"];
@@ -401,6 +403,7 @@ - (id)initWithCoder:(NSCoder *)decoder
self = [super init];
if (self) {
[self setStringEncoding:[decoder decodeIntegerForKey:@"stringEncoding"]];
+ _postDataEncoding = [decoder decodeIntegerForKey:@"postDataEncoding"];
self.request = [decoder decodeObjectForKey:@"request"];
self.uniqueId = [decoder decodeObjectForKey:@"uniqueId"];
@@ -426,6 +429,7 @@ - (id)copyWithZone:(NSZone *)zone
{
MKNetworkOperation *theCopy = [[[self class] allocWithZone:zone] init]; // use designated initializer
+ theCopy.postDataEncoding = _postDataEncoding;
[theCopy setStringEncoding:self.stringEncoding];
[theCopy setUniqueId:[self.uniqueId copy]];

0 comments on commit 9b9bcd2

Please sign in to comment.
Something went wrong with that request. Please try again.