Feng Lee 9 lat temu
rodzic
commit
8c1f5d7ec1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/emqttd_http.erl

+ 1 - 1
src/emqttd_http.erl

@@ -46,7 +46,7 @@ handle_request('GET', "/status", Req) ->
 handle_request('POST', "/mqtt/publish", Req) ->
     case authorized(Req) of
         true  -> http_publish(Req);
-        false -> Req:respond({401, [], <<"Fobbiden">>})
+        false -> Req:respond({401, [], <<"Unauthorized">>})
     end;
 
 %%--------------------------------------------------------------------