mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Don't send parameterization of the object with DELETE request's either. Update docs to reflect this. refs #947
This commit is contained in:
@@ -223,7 +223,7 @@ static BOOL RKDoesArrayOfResponseDescriptorsContainEntityMapping(NSArray *respon
|
||||
NSString *stringMethod = RKStringFromRequestMethod(method);
|
||||
NSDictionary *requestParameters = nil;
|
||||
RKRequestDescriptor *requestDescriptor = RKRequestDescriptorFromArrayMatchingObject(self.requestDescriptors, object);
|
||||
if (method != RKRequestMethodGET && requestDescriptor) {
|
||||
if ((method != RKRequestMethodGET && method != RKRequestMethodDELETE) && requestDescriptor) {
|
||||
NSError *error = nil;
|
||||
requestParameters = [[RKObjectParameterization parametersWithObject:object requestDescriptor:requestDescriptor error:&error] mutableCopy];
|
||||
if (parameters) {
|
||||
|
||||
Reference in New Issue
Block a user