aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_rest.erl
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 /src/cowboy_rest.erl
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 'src/cowboy_rest.erl')
-rw-r--r--src/cowboy_rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index be2baaf..2f3a2e4 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -706,7 +706,7 @@ process_post(Req, State) ->
is_conflict(Req, State) ->
expect(Req, State, is_conflict, false, fun put_resource/2, 409).
-put_resource(Req=#http_req{raw_path=RawPath, meta=Meta}, State) ->
+put_resource(Req=#http_req{path=RawPath, meta=Meta}, State) ->
Req2 = Req#http_req{meta=[{put_path, RawPath}|Meta]},
put_resource(Req2, State, fun is_new_resource/2).