[Corona] Change return type for raw data

Review Request #885 — Created Nov. 15, 2022 and submitted — Latest diff uploaded

b.stoop
Lunr
fix/nobodypost
e36edaa...
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

Loading...