fix task_event
This commit is contained in:
parent
c7d725e5a9
commit
4618e0a562
@ -33,7 +33,10 @@ init(Req0, Opts) ->
|
||||
|
||||
{ok, Req1, Opts};
|
||||
{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}
|
||||
end.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user