Skip to content

Commit

Permalink
Merge pull request #837 from chimit/patch-1
Browse files Browse the repository at this point in the history
Change "ok" message to uppercase
  • Loading branch information
Feng Lee committed Dec 27, 2016
2 parents dc44c68 + 06ca135 commit 2d3d8a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emqttd_http.erl
Expand Up @@ -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} ->
Expand Down

0 comments on commit 2d3d8a6

Please sign in to comment.