Unauthorized
This commit is contained in:
parent
ce2261d446
commit
8c1f5d7ec1
|
@ -46,7 +46,7 @@ handle_request('GET', "/status", Req) ->
|
||||||
handle_request('POST', "/mqtt/publish", Req) ->
|
handle_request('POST', "/mqtt/publish", Req) ->
|
||||||
case authorized(Req) of
|
case authorized(Req) of
|
||||||
true -> http_publish(Req);
|
true -> http_publish(Req);
|
||||||
false -> Req:respond({401, [], <<"Fobbiden">>})
|
false -> Req:respond({401, [], <<"Unauthorized">>})
|
||||||
end;
|
end;
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue