Navigation Menu

Skip to content

Commit

Permalink
Make sure location path always has a slash at the front
Browse files Browse the repository at this point in the history
  • Loading branch information
b committed Jun 7, 2011
1 parent 7f15e1c commit 76d09eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webmachine_decision_core.erl
Expand Up @@ -438,7 +438,7 @@ decision(v3n11) ->
_ -> Any
end
end,
FullPath = filename:join([wrcall(path), NewPath]),
FullPath = filename:join(["/", wrcall(path), NewPath]),
wrcall({set_disp_path, FullPath}),
case wrcall({get_resp_header, "Location"}) of
undefined -> wrcall({set_resp_header, "Location", BaseUri ++ FullPath});
Expand Down

0 comments on commit 76d09eb

Please sign in to comment.