[Domain Mapping] BUG: https with primary domain set to https not redirecting to https version when

Please test the following scenario:
Add two domains to domain mapping


Choose https://domain1.com as the primary domain.

Now visit http://domain2.com, expected outcome is to go to redirect to https://domain1.com , but instead it redirects to http://domain1.com

Google treats https and http differently, so this will cause a lowering in somebodies SEO and page rank.

in addition, i am using cloudflare and autoptimize for caching, but domain mapping should be sending the 301 redirect before any of this is hit.

BUG worthy of priority