Browse Source

Merge branch 'fix_created_path' of git://github.com/nevar/cowboy

Loïc Hoguin 12 years ago
parent
commit
86e3c5caee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_rest.erl

+ 1 - 1
src/cowboy_rest.erl

@@ -695,7 +695,7 @@ created_path(Req, State) ->
 			{HostURL, Req3} = cowboy_req:host_url(Req2),
 			{HostURL, Req3} = cowboy_req:host_url(Req2),
 			State2 = State#state{handler_state=HandlerState},
 			State2 = State#state{handler_state=HandlerState},
 			Req4 = cowboy_req:set_resp_header(
 			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),
 			respond(cowboy_req:set_meta(put_path, Path, Req4),
 				State2, 303)
 				State2, 303)
 	end.
 	end.