Missing request body in PATCH requests
ynurmahomed opened this issue · comments
Yassin commented
The following mediator route results in a 400 Bad Request even when the request body is provided:
app.all("*", (_req, res) => {
if(!_req.body) {
res.status(400).json({error: "No request body"});
}
res.status(200);
});
https://discourse.ohie.org/t/patch-request-unexpected-eof-read-on-the-socket/4650
Brett Larry Onions commented
Hello @ynurmahomed, this Issue with PATCH request has been resolved you can pull the latest changes from the 'master' branch or you can use the jembi/openhim-core:v8.4.2 docker image.
Yassin commented
Hi @brett-onions I confirm PATCH requests are now working on my side. Thank you.