Skip to content

Commit 49209e0

Browse files
committed
Fix RKResponseMapperOperation matchingResponseDescriptors to check for method match
1 parent 18087af commit 49209e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Code/Network/RKResponseMapperOperation.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ - (id)parseResponseData:(NSError **)error
215215
- (NSArray *)buildMatchingResponseDescriptors
216216
{
217217
NSIndexSet *indexSet = [self.responseDescriptors indexesOfObjectsPassingTest:^BOOL(RKResponseDescriptor *responseDescriptor, NSUInteger idx, BOOL *stop) {
218-
return [responseDescriptor matchesResponse:self.response];
218+
return [responseDescriptor matchesResponse:self.response] && (RKRequestMethodFromString(self.request.HTTPMethod) & responseDescriptor.method);
219219
}];
220220
return [self.responseDescriptors objectsAtIndexes:indexSet];
221221
}

0 commit comments

Comments
 (0)