avz-cmf / zaboy-rest

0 stars 1 forks source link

zaboy\rest\Middleware\RequestDecoder #1

Closed victorynox closed 8 years ago

victorynox commented 8 years ago

Нет проверки на существование массива $overwriteMode = $overwriteModeHeader[0] === '*' ? true : false;

if (false !== strpos($contenttype[0], 'json')) { $body = $this->jsonDecode($request->getBody()->__toString()); $request = $request->withParsedBody($body); } else { //todo XML? }

avz-cmf commented 8 years ago

Fixed