Change "ok" message to uppercase
This commit is contained in:
parent
dc44c685cd
commit
06ca13531e
|
@ -98,7 +98,7 @@ http_publish(Req) ->
|
||||||
Msg = emqttd_message:make(ClientId, Qos, Topic, Payload),
|
Msg = emqttd_message:make(ClientId, Qos, Topic, Payload),
|
||||||
emqttd:publish(Msg#mqtt_message{retain = Retain})
|
emqttd:publish(Msg#mqtt_message{retain = Retain})
|
||||||
end, Topics),
|
end, Topics),
|
||||||
Req:ok({"text/plain", <<"ok">>});
|
Req:ok({"text/plain", <<"OK">>});
|
||||||
{false, _} ->
|
{false, _} ->
|
||||||
Req:respond({400, [], <<"Bad QoS">>});
|
Req:respond({400, [], <<"Bad QoS">>});
|
||||||
{_, false} ->
|
{_, false} ->
|
||||||
|
|
Loading…
Reference in New Issue