|
@@ -842,7 +842,7 @@ process_content_type(Req, State=#state{method=Method,
|
|
{false, Req2, HandlerState2} ->
|
|
{false, Req2, HandlerState2} ->
|
|
State2 = State#state{handler_state=HandlerState2},
|
|
State2 = State#state{handler_state=HandlerState2},
|
|
respond(Req2, State2, 422);
|
|
respond(Req2, State2, 422);
|
|
- {ResURL, Req2, HandlerState2} when Method =:= <<"POST">> ->
|
|
|
|
|
|
+ {{true, ResURL}, Req2, HandlerState2} when Method =:= <<"POST">> ->
|
|
State2 = State#state{handler_state=HandlerState2},
|
|
State2 = State#state{handler_state=HandlerState2},
|
|
Req3 = cowboy_req:set_resp_header(
|
|
Req3 = cowboy_req:set_resp_header(
|
|
<<"location">>, ResURL, Req2),
|
|
<<"location">>, ResURL, Req2),
|