Fix enable_https issue #674