瀏覽代碼

Unauthorized

Feng Lee 9 年之前
父節點
當前提交
8c1f5d7ec1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) ->
 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;
 
 
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------