0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Fix Location header

Fix #414
This commit is contained in:
Slava Yurin 2013-02-09 11:19:25 +07:00
parent efbd913326
commit 7ca591a0da

View file

@ -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.