aboutsummaryrefslogtreecommitdiffstats
path: root/test/rest_forbidden_resource.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rest_forbidden_resource.erl')
-rw-r--r--test/rest_forbidden_resource.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/rest_forbidden_resource.erl b/test/rest_forbidden_resource.erl
index 5c6aca0..90dee84 100644
--- a/test/rest_forbidden_resource.erl
+++ b/test/rest_forbidden_resource.erl
@@ -7,10 +7,7 @@ init(_Transport, _Req, _Opts) ->
{upgrade, protocol, cowboy_http_rest}.
rest_init(Req, [Forbidden]) ->
- {Headers, Req2} = cowboy_http_req:headers(Req),
- {Method, Req3} = cowboy_http_req:method(Req2),
- ct:print("method ~p headers ~p", [Method, Headers]),
- {ok, Req3, Forbidden}.
+ {ok, Req, Forbidden}.
allowed_methods(Req, State) ->
{['GET', 'HEAD', 'POST'], Req, State}.