This commit is contained in:
anlicheng 2024-10-14 17:56:09 +08:00
parent ea252a98aa
commit e41d73db8d

View File

@ -29,7 +29,7 @@ init(Req0, Opts) ->
}, Resp, Req1), }, Resp, Req1),
{ok, Req2, Opts}; {ok, Req2, Opts};
false -> false ->
lager:debug("[api_handler] invalid sign: ~p, body sign: ~p, request body: ~ts", [Sign, BodySign, ReqBody]), lager:debug("[api_handler] invalid sign: ~p, body sign: ~p, request body: ``~ts``", [Sign, BodySign, ReqBody]),
Req2 = cowboy_req:reply(500, #{ Req2 = cowboy_req:reply(500, #{
<<"Content-Type">> => <<"text/html;charset=utf-8">> <<"Content-Type">> => <<"text/html;charset=utf-8">>
}, <<"Internal Server Error">>, Req1), }, <<"Internal Server Error">>, Req1),