File python-urlgrabber-3.9.1-set-SSL_VERIFYHOST-correct.dif of Package python-urlgrabber

Index: urlgrabber-3.9.1/urlgrabber/grabber.py
===================================================================
--- urlgrabber-3.9.1.orig/urlgrabber/grabber.py
+++ urlgrabber-3.9.1/urlgrabber/grabber.py
@@ -1190,7 +1190,8 @@ class PyCurlFileObject():
                 self.curl_obj.setopt(pycurl.CAPATH, opts.ssl_ca_cert)
                 self.curl_obj.setopt(pycurl.CAINFO, opts.ssl_ca_cert)
             self.curl_obj.setopt(pycurl.SSL_VERIFYPEER, opts.ssl_verify_peer)
-            self.curl_obj.setopt(pycurl.SSL_VERIFYHOST, opts.ssl_verify_host)
+            if opts.ssl_verify_host: # 1 is meaningless to curl
+                self.curl_obj.setopt(pycurl.SSL_VERIFYHOST, 2)
             if opts.ssl_key:
                 self.curl_obj.setopt(pycurl.SSLKEY, opts.ssl_key)
             if opts.ssl_key_type: