pnxtech / hydra-router

A service aware router for Hydra Services. Implements an API Gateway and can route web socket messages.
MIT License
60 stars 24 forks source link

hydra-router not processing application/x-www-form-urlencoded request #123

Closed malasgowda closed 6 years ago

malasgowda commented 7 years ago

Hi ,

If post request is sent directly to hydra-express with content-type as application/x-www-form-urlencoded then we are able to get the request body, but if the same request is sent through hydra-router then request body is coming empty.

cjus commented 7 years ago

Hello @malasgowda Hydra-router doesn't currently support form submission. Your microservice is expected to accept JSON requests.

zerefel commented 6 years ago

Accepting JSON is mostly fine when working on a private API. However, some 3rd party services that offer webhook notifications send along 'application/x-www-form-urlencoded' content-type, which, in turn, fails at the hydra-router level.