0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Remove an useless todo

This commit is contained in:
Loïc Hoguin 2012-07-22 05:21:05 +02:00
parent adc363919c
commit bab62900dd

View file

@ -906,7 +906,6 @@ next(Req, State, Next) when is_function(Next) ->
next(Req, State, StatusCode) when is_integer(StatusCode) -> next(Req, State, StatusCode) when is_integer(StatusCode) ->
respond(Req, State, StatusCode). respond(Req, State, StatusCode).
%% @todo Allow some sort of callback for custom error pages.
respond(Req, State, StatusCode) -> respond(Req, State, StatusCode) ->
{ok, Req2} = cowboy_http_req:reply(StatusCode, Req), {ok, Req2} = cowboy_http_req:reply(StatusCode, Req),
terminate(Req2, State). terminate(Req2, State).