aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-10 12:25:07 +0200
committerLoïc Hoguin <[email protected]>2012-09-10 12:26:04 +0200
commit79839b7bb5ae3aef77eb7ab704efa6168927845f (patch)
tree8ddb398b58d2a2665562e65a031c2b5e7bb84ff8 /test
parent6fa734b487102ed1436fd61598d51817a46a9b75 (diff)
downloadcowboy-79839b7bb5ae3aef77eb7ab704efa6168927845f.tar.gz
cowboy-79839b7bb5ae3aef77eb7ab704efa6168927845f.tar.bz2
cowboy-79839b7bb5ae3aef77eb7ab704efa6168927845f.zip
Replace cowboy_req:path/1 with cowboy_req:raw_path/1
The latter is much more useful than the former, which ends up being removed.
Diffstat (limited to 'test')
-rw-r--r--test/rest_forbidden_resource.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rest_forbidden_resource.erl b/test/rest_forbidden_resource.erl
index 9d3cd95..d34e7b2 100644
--- a/test/rest_forbidden_resource.erl
+++ b/test/rest_forbidden_resource.erl
@@ -27,7 +27,7 @@ post_is_create(Req, State) ->
{true, Req, State}.
create_path(Req, State) ->
- {Path, Req2} = cowboy_req:raw_path(Req),
+ {Path, Req2} = cowboy_req:path(Req),
{Path, Req2, State}.
to_text(Req, State) ->