Http publish mochiweb_request:parse_post(Req) -> Req:recv_body

This commit is contained in:
turtled 2017-05-08 18:13:52 +08:00
parent 73d84bef5e
commit 161e5a2b5b
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ handle_request(Method, Path, Req) ->
%%--------------------------------------------------------------------
http_publish(Req) ->
Params = mochiweb_request:parse_post(Req),
Params = Req:recv_body(),
lager:info("HTTP Publish: ~p", [Params]),
Topics = topics(Params),
ClientId = get_value("client", Params, http),