jembi / openhim-core-js

The Open Health Information Mediator core component. OpenHIM Support: Post your query on OpenHIE Discourse using the #openhim tag https://discourse.ohie.org/
http://openhim.org
Mozilla Public License 2.0
69 stars 69 forks source link

Missing request body in PATCH requests #1217

Closed ynurmahomed closed 7 months ago

ynurmahomed commented 7 months ago

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-onions commented 7 months ago

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.

ynurmahomed commented 7 months ago

Hi @brett-onions I confirm PATCH requests are now working on my side. Thank you.