Browse files

Fixed bug where POST calls couldn't handle query parameters in URL

  • Loading branch information...
1 parent 5461fb7 commit d1b8cec9805efdd8224eaee981439b19b4b50956 @esseguin esseguin committed Jul 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mashape/methods/handler.php
View
2 mashape/methods/handler.php
@@ -66,7 +66,7 @@ public static function handleAPI($instance, $serverKey) {
$requestMethod = (isset($_SERVER['REQUEST_METHOD'])) ? strtolower($_SERVER['REQUEST_METHOD']) : null;
$params;
if ($requestMethod == 'post') {
- $params = self::getAllParams($_POST);
+ $params = array_merge(self::getAllParams($_GET), self::getAllParams($_POST));
} else if ($requestMethod == 'get') {
$params = self::getAllParams($_GET);
} else if ($requestMethod == 'put' || $requestMethod == 'delete') {

0 comments on commit d1b8cec

Please sign in to comment.