Permalink
Browse files

moved type check before body check

  • Loading branch information...
1 parent 94ae23b commit 56a5ef4908c4feac088b59383326f29383aeed4a @omeryar omeryar committed Jul 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 net/http/Service.php
View
2 net/http/Service.php
@@ -216,8 +216,8 @@ protected function _request($method, $path, $data, $options) {
$request->method = $method = strtoupper($method);
$hasBody = in_array($method, array('POST', 'PUT'));
- $hasBody ? $request->body($data) : $request->query = $data;
$hasBody ? $request->type($options['type']) : null;
+ $hasBody ? $request->body($data) : $request->query = $data;
return $request;
}
}

0 comments on commit 56a5ef4

Please sign in to comment.