Fix bug. now post data overwrites uri parameter. before it was the other way around.

This commit is contained in:
Dennis Eichhorn 2019-05-19 14:20:37 +02:00
parent 5965f2a4ca
commit 4633c209a6

View File

@ -140,7 +140,7 @@ final class Request extends RequestAbstract
throw new \Exception('Is not valid json ' . $input);
}
$this->data += $json;
$this->data = $json + $this->data;
} elseif (\stripos($_SERVER['CONTENT_TYPE'], 'application/x-www-form-urlencoded') !== false) {
$content = \file_get_contents('php://input');