Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: MugunthKumar/MKNetworkKit
base: master
...
head fork: milancermak/MKNetworkKit
compare: respone-string-in-error-dict
Checking mergeability… Don't worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 3 additions and 2 deletions.
  1. +3 −2 MKNetworkKit/MKNetworkOperation.m
View
5 MKNetworkKit/MKNetworkOperation.m
@@ -1181,10 +1181,11 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
}
} else if (self.response.statusCode >= 400 && self.response.statusCode < 600 && ![self isCancelled]) {
-
+ NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithDictionary:self.response.allHeaderFields];
+ [userInfo setObject:self.responseString forKey:@"responseString"];
[self operationFailedWithError:[NSError errorWithDomain:NSURLErrorDomain
code:self.response.statusCode
- userInfo:self.response.allHeaderFields]];
+ userInfo:userInfo]];
}
[self endBackgroundTask];

No commit comments for this range

Something went wrong with that request. Please try again.