#16 using requested protocol in the redirect