mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Merge Kevin Lord's patch for ignoring request body on a GET request
This commit is contained in:
@@ -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]];
|
||||
|
||||
Reference in New Issue
Block a user