[PATCH 4/5] Fix an undetected bug when setting up an HTTPS method.