changed filename_splited.strip() to filename_splited.strip(' "\'') to remove space,double quotation and single quotation from beginning and end of filename.
get filename from link properly when file name not found in 'Content-Disposition' response header.
changed
filename_splited.strip()
tofilename_splited.strip(' "\'')
to remove space,double quotation and single quotation from beginning and end of filename.get filename from link properly when file name not found in 'Content-Disposition' response header.
remove duplicate codes.
maybe related to issue https://github.com/persepolisdm/persepolis/issues/973