Use isSSL instead of page.contentType

@chrisfinch I prefer this solution to your 076278d - does that work for you? In general we want to avoid lots of _if section = foo { ... }_ scattered across the code.