|
@@ -4435,7 +4435,6 @@ namespace Tqdev\PhpCrudApi\Controller {
|
4435
|
4435
|
{
|
4436
|
4436
|
private $service;
|
4437
|
4437
|
private $responder;
|
4438
|
|
- private $geoJsonConverter;
|
4439
|
4438
|
|
4440
|
4439
|
public function __construct(Router $router, Responder $responder, GeoJsonService $service)
|
4441
|
4440
|
{
|
|
@@ -10134,9 +10133,14 @@ namespace Tqdev\PhpCrudApi {
|
10134
|
10133
|
$request = $this->applySlim3Hack($request);
|
10135
|
10134
|
} else {
|
10136
|
10135
|
$body = $request->getBody();
|
10137
|
|
- if ($body->isReadable() && $body->isSeekable()) {
|
|
10136
|
+ if ($body->isReadable()) {
|
|
10137
|
+ if ($body->isSeekable()) {
|
|
10138
|
+ $body->rewind();
|
|
10139
|
+ }
|
10138
|
10140
|
$contents = $body->getContents();
|
10139
|
|
- $body->rewind();
|
|
10141
|
+ if ($body->isSeekable()) {
|
|
10142
|
+ $body->rewind();
|
|
10143
|
+ }
|
10140
|
10144
|
if ($contents) {
|
10141
|
10145
|
$parsedBody = $this->parseBody($contents);
|
10142
|
10146
|
$request = $request->withParsedBody($parsedBody);
|