Multi Domain SES and SSL

I have been using the MultiDomain SES Interceptor found here https://github.com/ColdBox/depot-cbox-interceptors/blob/master/multi-domain-ses/MultiDomainSES.cfc and recently had a requirement to use SSL as well. As with most things ColdBox, there is already an interceptor for that as well https://github.com/ColdBox/depot-cbox-interceptors/tree/master/ssl

However, one thing that I had to change was that MultiDomain SES always uses http:// without considering https://

So, one small change and this was fixed.

      if(event.isSSL())
      {
        arguments.event.setSESBaseURL("https://" & cgi.http_host );
      } else {
        arguments.event.setSESBaseURL("http://" & cgi.http_host );
      }

Just thought I will post it here. Ofcourse the MultiDomain interceptor needs to be before the SSL interceptor in the config file.

Regards,
Anuj Gakhar