Bläddra i källkod

pielikts verify=False

Ivars 5 år sedan
förälder
incheckning
fbcef4955e
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      ltcproxy.py

+ 2
- 2
ltcproxy.py Visa fil

@@ -480,7 +480,7 @@ Content-Type: application/x-www-form-urlencoded; charset=UTF-8
480 480
 Host: manstv.lattelecom.tv
481 481
 """ )
482 482
     try:
483
-        r = requests.post(url, data=params, headers=headers)
483
+        r = requests.post(url, data=params, headers=headers, verify=False)
484 484
     except Exception as ex:
485 485
         if DEBUG:
486 486
             print "Login exception - %s " % (str(ex))
@@ -513,7 +513,7 @@ Content-Type: application/x-www-form-urlencoded; charset=UTF-8
513 513
 Host: manstv.lattelecom.tv
514 514
 """)
515 515
     try:
516
-        r = requests.post(url, data=params, headers=headers)
516
+        r = requests.post(url, data=params, headers=headers, verify = False)
517 517
     except Exception as ex:
518 518
         if DEBUG:
519 519
             print "Login exception - %s " % (str(ex))