aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlava Yurin <[email protected]>2013-02-09 11:19:25 +0700
committerSlava Yurin <[email protected]>2013-02-09 11:19:25 +0700
commit7ca591a0dafbdd1e6d825682cb9895e3e56ee9e2 (patch)
tree35c592b113284709872e41c58e38da010002fd00
parentefbd9133261e1aabf473f2f6f5ab4cbb36062481 (diff)
downloadcowboy-7ca591a0dafbdd1e6d825682cb9895e3e56ee9e2.tar.gz
cowboy-7ca591a0dafbdd1e6d825682cb9895e3e56ee9e2.tar.bz2
cowboy-7ca591a0dafbdd1e6d825682cb9895e3e56ee9e2.zip
Fix Location header
Fix #414
-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 a49d622..65169e2 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -695,7 +695,7 @@ created_path(Req, State) ->
{HostURL, Req3} = cowboy_req:host_url(Req2),
State2 = State#state{handler_state=HandlerState},
Req4 = cowboy_req:set_resp_header(
- <<"Location">>, << HostURL/binary, Path/binary >>, Req3),
+ <<"location">>, << HostURL/binary, Path/binary >>, Req3),
respond(cowboy_req:set_meta(put_path, Path, Req4),
State2, 303)
end.