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/

Home Page:http://openhim.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing request body in PATCH requests

ynurmahomed opened this issue · comments

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

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.

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