You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Phalcon Module: Phalcon 2.0.5 - Windows x64 for PHP 5.5.0 (vc11)
I'm unsure if this is intended behaviour or not, please let me know if it's just my brain logic that is a bit off, but basically I've found that playing around with the request service results in the clearing of the request body.
Now if you were to execute getRawBody() before the getPut() (Or vice versa, it doesn't really matter)
getRawBody() returns an empty string.
So uncomment the last application line:
var_dump($di->get('request')->getRawBody());
and you'll get back
string(0) ""
after/at the end of the response.
tl;dr: You cannot use $request->getPut(); and $request->getRawBody(); on the same request object. The latter executed will return empty.
This is intended logic?
The text was updated successfully, but these errors were encountered:
Phalcon Module: Phalcon 2.0.5 - Windows x64 for PHP 5.5.0 (vc11)
I'm unsure if this is intended behaviour or not, please let me know if it's just my brain logic that is a bit off, but basically I've found that playing around with the request service results in the clearing of the request body.
Take this really simple app
and take this HTTP Request
Request body:
Output for getPut is as expected, it displays
Now if you were to execute
getRawBody()
before thegetPut()
(Or vice versa, it doesn't really matter)getRawBody() returns an empty string.
So uncomment the last application line:
and you'll get back
after/at the end of the response.
tl;dr: You cannot use $request->getPut(); and $request->getRawBody(); on the same request object. The latter executed will return empty.
This is intended logic?
The text was updated successfully, but these errors were encountered: