@jekor ^ this code also led to 500s on http -> https redirects.  I'm pinging you, just in case that you remember that it was critical to do it like that for some reason.