diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_handler.erl | 2 | ||||
-rw-r--r-- | src/cowboy_req.erl | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/cowboy_handler.erl b/src/cowboy_handler.erl index 7791fe2..7fb2dd5 100644 --- a/src/cowboy_handler.erl +++ b/src/cowboy_handler.erl @@ -54,7 +54,7 @@ execute(Req, Env=#{handler := Handler, handler_opts := HandlerOpts}) -> terminate(Reason, Req, State, Handler) -> case erlang:function_exported(Handler, terminate, 3) of true -> - Handler:terminate(Reason, cowboy_req:lock(Req), State); + Handler:terminate(Reason, Req, State); false -> ok end. diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index 1585c39..07bc014 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -85,7 +85,6 @@ -export([get/2]). -export([set/2]). -export([set_bindings/4]). --export([lock/1]). -type cookie_opts() :: cow_cookie:cookie_opts(). -export_type([cookie_opts/0]). @@ -1066,10 +1065,6 @@ set_bindings(HostInfo, PathInfo, Bindings, Req) -> Req#http_req{host_info=HostInfo, path_info=PathInfo, bindings=Bindings}. --spec lock(Req) -> Req when Req::req(). -lock(Req) -> - Req#http_req{resp_state=locked}. - %% Internal. %% We don't match on "keep-alive" since it is the default value. |