fix task_event

This commit is contained in:
anlicheng 2026-05-09 16:03:32 +08:00
parent c7d725e5a9
commit 4618e0a562

View File

@ -33,7 +33,10 @@ init(Req0, Opts) ->
{ok, Req1, Opts}; {ok, Req1, Opts};
{error, Reason} -> {error, Reason} ->
Req1 = cowboy_req:reply(400, #{<<"Content-Type">> => <<"application/json">>}, iot_util:json_error(400, Reason), Req0), Req1 = cowboy_req:reply(400, #{
<<"Content-Type">> => <<"application/json">>
}, iot_util:json_error(400, Reason), Req0),
{ok, Req1, Opts} {ok, Req1, Opts}
end. end.