aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE_data/rest_patch_resource.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/http_SUITE_data/rest_patch_resource.erl')
-rw-r--r--test/http_SUITE_data/rest_patch_resource.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_SUITE_data/rest_patch_resource.erl b/test/http_SUITE_data/rest_patch_resource.erl
index c1244e7..341920d 100644
--- a/test/http_SUITE_data/rest_patch_resource.erl
+++ b/test/http_SUITE_data/rest_patch_resource.erl
@@ -28,7 +28,7 @@ content_types_accepted(Req, State) ->
end.
patch_text_plain(Req, State) ->
- case cowboy_req:body(Req) of
+ case cowboy_req:read_body(Req) of
{ok, <<"stop">>, Req0} ->
{stop, cowboy_req:reply(400, Req0), State};
{ok, <<"false">>, Req0} ->