added support for https on worker autospawn