Update resource.py

SSL verification bug.