Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jun 7, 2024
1 parent 40f5a72 commit 92b44f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HinetPy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from html.parser import HTMLParser
from multiprocessing.pool import ThreadPool

import certifi
import requests
from requests.adapters import HTTPAdapter
from urllib3 import PoolManager
Expand Down Expand Up @@ -184,7 +185,9 @@ def login(self, user, password):
self.session = requests.Session()
self.session.mount(self._HINET, AddedCipherAdapter())
self.session.mount(self._AUTH, AddedCipherAdapter())
self.session.get(self._AUTH, timeout=self.timeout) # get cookie
self.session.get(
self._AUTH, timeout=self.timeout, verify=certifi.where()
) # get cookie
resp = self.session.post(
self._AUTH,
data={"auth_un": self.user, "auth_pw": self.password},
Expand Down

0 comments on commit 92b44f2

Please sign in to comment.