Merge Kevin Lord's patch for ignoring request body on a GET request

This commit is contained in:
Blake Watters
2011-03-09 15:34:01 -05:00
parent d359f0403a
commit 779f3befb7

View File

@@ -66,7 +66,7 @@
}
- (void)setRequestBody {
if (_params) {
if (_params && (_method != RKRequestMethodGET)) {
// Prefer the use of a stream over a raw body
if ([_params respondsToSelector:@selector(HTTPBodyStream)]) {
[_URLRequest setHTTPBodyStream:[_params HTTPBodyStream]];