Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Fixed a bug with bodyData
Browse files Browse the repository at this point in the history
  • Loading branch information
pesicvladica committed Sep 6, 2011
1 parent 26e726c commit 448d0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RESTframework/RESTframework/RFClasses/RFRequest.m
Expand Up @@ -199,9 +199,9 @@ -(NSURLRequest*) urlRequest
}

if (self.requestMethod != RFRequestMethodGet && bData && bData.length > 0) {
[urlRequest setValue:[NSString stringWithFormat:@"%d", [self.bodyData length]] forHTTPHeaderField:@"Content-Length"];
[urlRequest setValue:[NSString stringWithFormat:@"%d", [bData length]] forHTTPHeaderField:@"Content-Length"];
[urlRequest setValue:[RFRequest contentTypeToString:self.bodyContentType] forHTTPHeaderField:@"Content-Type"];
[urlRequest setHTTPBody:self.bodyData];
[urlRequest setHTTPBody:bData];
}

return urlRequest;
Expand Down

0 comments on commit 448d0f5

Please sign in to comment.