[Corona] Change return type for raw data
Review Request #885 — Created Nov. 15, 2022 and submitted — Latest diff uploaded
Information | |
---|---|
b.stoop | |
Lunr | |
fix/nobodypost | |
e36edaa... | |
Reviewers | |
lunr | |
Corona: Change return type for raw data
In a attempt to test a new POST api I forgot to send a body and got this response:
{ "data": {}, "status": { "code": 500, "message": "Return value of Lunr\\Corona\\Request::get_raw_data() must be of the type string, null returned" } }The probablity that this happens in with real requests is low but I still think this must be handled better
unit tests
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 4. See what's changed.
orig
1
2
3
4
src/Lunr/Corona/Request.php |
---|