Use proper HTTP prefix depending on if secure enabled.