FIx nasty problem with HTTP method being dropped from earlier headers cleanup

This commit is contained in:
Blake Watters
2012-10-05 16:54:30 -04:00
parent ac05ea67b0
commit b9b34bf3dd

View File

@@ -201,8 +201,9 @@ static NSString *RKMIMETypeFromAFHTTPClientParameterEncoding(AFHTTPClientParamet
path:(NSString *)path
parameters:(NSDictionary *)parameters
{
NSURL *url = [NSURL URLWithString:path relativeToURL:self.HTTPClient.baseURL];
NSURL *url = [NSURL URLWithString:path relativeToURL:self.HTTPClient.baseURL];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:url];
[request setHTTPMethod:method];
[request setAllHTTPHeaderFields:self.defaultHeaders];
if (parameters) {