aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-12-08 20:21:50 +0100
committerLoïc Hoguin <[email protected]>2011-12-08 20:21:50 +0100
commit168405830d564ff87fac61bd990c17ab6a35dfa8 (patch)
treebcbbcccaf99da972d796cb6b17f0f973bc22b965 /src
parent81fe0592b10c5815caac942194d38fdbb368a216 (diff)
downloadcowboy-168405830d564ff87fac61bd990c17ab6a35dfa8.tar.gz
cowboy-168405830d564ff87fac61bd990c17ab6a35dfa8.tar.bz2
cowboy-168405830d564ff87fac61bd990c17ab6a35dfa8.zip
Fix the process_post/2 function in cowboy_http_rest
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http_rest.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cowboy_http_rest.erl b/src/cowboy_http_rest.erl
index ffece5a..ef6e92c 100644
--- a/src/cowboy_http_rest.erl
+++ b/src/cowboy_http_rest.erl
@@ -623,12 +623,11 @@ create_path(Req, State) ->
put_resource(Req3, State2, 303)
end.
-%% @todo process_post/2 isn't fully implemented yet.
process_post(Req, State) ->
case call(Req, State, process_post) of
- {ok, _Req2, HandlerState} ->
- _ = _State2 = State#state{handler_state=HandlerState},
- todo %% @todo ???
+ {ok, Req2, HandlerState} ->
+ State2 = State#state{handler_state=HandlerState},
+ next(Req2, State2, 201)
end.
is_conflict(Req, State) ->