diff options
author | Loïc Hoguin <[email protected]> | 2015-05-06 17:38:35 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-06 17:38:35 +0300 |
commit | 1f5b19a0b791e5eedeb4bd0f8fcaac29e61fb03a (patch) | |
tree | 01fb668015384d2aa335067ffff04ab6b09b84f6 /src | |
parent | 4aabb6756264470368e6d5164babc40494c06e55 (diff) | |
download | cowboy-1f5b19a0b791e5eedeb4bd0f8fcaac29e61fb03a.tar.gz cowboy-1f5b19a0b791e5eedeb4bd0f8fcaac29e61fb03a.tar.bz2 cowboy-1f5b19a0b791e5eedeb4bd0f8fcaac29e61fb03a.zip |
Use the most recent state on error in cowboy_rest
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_rest.erl | 2 |
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) |