aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-02-09 15:45:20 +0100
committerLoïc Hoguin <[email protected]>2013-02-09 15:45:20 +0100
commit86e3c5caee3d5c8ffe3656c25c8aba1ef9e3b52f (patch)
tree14a53dba0a42925599b5623fcbb2ceb276ff9367
parent574c3d490061fa4f8ddd3eb5c855abf5eab7b458 (diff)
parent7ca591a0dafbdd1e6d825682cb9895e3e56ee9e2 (diff)
downloadcowboy-86e3c5caee3d5c8ffe3656c25c8aba1ef9e3b52f.tar.gz
cowboy-86e3c5caee3d5c8ffe3656c25c8aba1ef9e3b52f.tar.bz2
cowboy-86e3c5caee3d5c8ffe3656c25c8aba1ef9e3b52f.zip
Merge branch 'fix_created_path' of git://github.com/nevar/cowboy
-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.