aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index b894354..1a478a1 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -621,7 +621,7 @@ not_modified(Req, State) ->
{Req4, State3} ->
respond(Req4, State3, 304)
catch Class:Reason ->
- error_terminate(Req, State, Class, Reason, expires)
+ error_terminate(Req, State2, Class, Reason, expires)
end
catch Class:Reason ->
error_terminate(Req, State, Class, Reason, generate_etag)