Skip to content

Commit

Permalink
Update filestation.py
Browse files Browse the repository at this point in the history
upload and download functions verification removed
  • Loading branch information
N4S4 authored Mar 10, 2021
2 parents 919f779 + 9139f8e commit 868440c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions synology_api/filestation.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,6 @@ def upload_file(self, dest_path, file_path, create_parents=True, overwrite=True,
filename = os.path.basename(file_path)

session = requests.session()

if self.base_url[:5] == 'https':
verify = True

with open(file_path, 'rb') as payload:
url = ('%s%s' % (self.base_url, api_path)) + '?api=%s&version=%s&method=upload&_sid=%s' % (
Expand Down Expand Up @@ -991,9 +988,6 @@ def get_file(self, path=None, mode=None, dest_path=".", chunk_size=8192, verify=

if path is None:
return 'Enter a valid path'

if self.base_url[:5] == 'https':
verify = True

session = requests.session()

Expand Down

0 comments on commit 868440c

Please sign in to comment.