aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_rest.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-01-26 18:25:35 +0100
committerLoïc Hoguin <[email protected]>2012-01-26 18:25:45 +0100
commit9d7316094203311a7464d3666ae7ebbce9db9869 (patch)
treed07de1a9048183fa0086ebd5b8e691d6e8d2a00e /src/cowboy_http_rest.erl
parent4b93c2d19a10e5d9cee207038103bb83f1ab9436 (diff)
parentca42ea16201acf34e2db436defacf3bde7ac03ca (diff)
downloadcowboy-9d7316094203311a7464d3666ae7ebbce9db9869.tar.gz
cowboy-9d7316094203311a7464d3666ae7ebbce9db9869.tar.bz2
cowboy-9d7316094203311a7464d3666ae7ebbce9db9869.zip
Merge branch 'rest_delete_no_call' of https://github.com/bfrog/cowboy
Diffstat (limited to 'src/cowboy_http_rest.erl')
-rw-r--r--src/cowboy_http_rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_rest.erl b/src/cowboy_http_rest.erl
index e6cc6ff..392b172 100644
--- a/src/cowboy_http_rest.erl
+++ b/src/cowboy_http_rest.erl
@@ -648,7 +648,7 @@ method(Req, State) ->
%% delete_resource/2 should start deleting the resource and return.
delete_resource(Req, State) ->
- expect(Req, State, delete_resource, true, fun delete_completed/2, 500).
+ expect(Req, State, delete_resource, false, 500, fun delete_completed/2).
%% delete_completed/2 indicates whether the resource has been deleted yet.
delete_completed(Req, State) ->