0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Use the most recent state on error in cowboy_rest

This commit is contained in:
Loïc Hoguin 2015-05-06 17:38:35 +03:00
parent 4aabb67562
commit 1f5b19a0b7

View file

@ -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)