mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
Fix bug. now post data overwrites uri parameter. before it was the other way around.
This commit is contained in:
parent
5965f2a4ca
commit
4633c209a6
|
|
@ -140,7 +140,7 @@ final class Request extends RequestAbstract
|
||||||
throw new \Exception('Is not valid json ' . $input);
|
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) {
|
} elseif (\stripos($_SERVER['CONTENT_TYPE'], 'application/x-www-form-urlencoded') !== false) {
|
||||||
$content = \file_get_contents('php://input');
|
$content = \file_get_contents('php://input');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user