mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Merge branch 'fix_created_path' of git://github.com/nevar/cowboy
This commit is contained in:
commit
86e3c5caee
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue