by deploying the module on several hostings, I ran into SSL issues. This commit contains a fix for potential SSL problems, making it more robust to hosting settings.