[Dancer-users] redirect to https

Nick Knutov mail at knutov.com
Fri Aug 19 14:37:45 CEST 2011


In some control panels I need to redirect all users on https, something like

before sub {
	return redirect 'https://'.request->host.request->request_uri
		if config->{environment} eq 'production'
			and not request->env->{HTTP_HTTPS};
	[...]
};

Is it a good way? My be it's already automated by some flag in config.yml?

Additional, I found that password from session_cookie_key is not hidden 
when error occurs and show_errors: 1. it's a bug, I think.

-- 
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130


More information about the Dancer-users mailing list