This commit is contained in:
Feng 2015-07-13 08:46:57 +08:00
parent f9284ca8ee
commit b6121f6bcb
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ handle_request('POST', "/mqtt/publish", Req) ->
{true, true} ->
Msg = emqttd_message:make(ClientId, Qos, Topic, Payload),
emqttd_pubsub:publish(Msg#mqtt_message{retain = Retain}),
Req:ok({"text/plan", <<"ok\n">>});
Req:ok({"text/plain", <<"ok\n">>});
{false, _} ->
Req:respond({400, [], <<"Bad QoS">>});
{_, false} ->