Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d1b8cec9805efdd8224eaee981439b19b4b50956 1 parent 5461fb7
@esseguin esseguin authored
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') {
Please sign in to comment.
Something went wrong with that request. Please try again.