Merge pull request #837 from chimit/patch-1

Change "ok" message to uppercase
This commit is contained in:
Feng Lee 2016-12-27 18:12:40 +08:00 committed by GitHub
commit 2d3d8a6d3a
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ http_publish(Req) ->
Msg = emqttd_message:make(ClientId, Qos, Topic, Payload),
emqttd:publish(Msg#mqtt_message{retain = Retain})
end, Topics),
Req:ok({"text/plain", <<"ok">>});
Req:ok({"text/plain", <<"OK">>});
{false, _} ->
Req:respond({400, [], <<"Bad QoS">>});
{_, false} ->