nitrogen / simple_bridge

A simple, standardized interface library to Erlang HTTP Servers.
MIT License
112 stars 76 forks source link

Request:request_body() returns undefined for the mochiweb bridge #1

Closed marianoguerra closed 13 years ago

marianoguerra commented 14 years ago

Request:request_body() returns undefined instead of a binary representing the request body for the implementation of mochiweb:

http://github.com/rklophaus/SimpleBridge/blob/master/src/mochiweb_bridge_modules/mochiweb_request_bridge.erl#L76

the solution is to return Req:recv_body() instead of undefined

marianoguerra commented 13 years ago

I think this https://github.com/nitrogen/simple_bridge/commit/2bd736e3c650e76b78e54a17c9ecf569d75ec30f closes the issue