Skip to content

Commit 29413fe

Browse files
authored
Add files via upload
1 parent f733e8d commit 29413fe

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

pywwwget_chatgpt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2468,7 +2468,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, us
24682468
if(isinstance(headers, list)):
24692469
headers = make_http_headers_from_list_to_dict(headers)
24702470
if(httpcookie is None):
2471-
httpcookie = os.devnull
2471+
httpcookie = tempfile.mktemp(suffix=".txt")
24722472
cookie_name, cookie_ext = os.path.splitext(httpcookie)
24732473
cookiefile = httpcookie
24742474
if(usehttp!="pycurl" or not havepycurl):

pywwwget_deepseek.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, us
25782578
if(isinstance(headers, list)):
25792579
headers = make_http_headers_from_list_to_dict(headers)
25802580
if(httpcookie is None):
2581-
httpcookie = os.devnull
2581+
httpcookie = tempfile.mktemp(suffix=".txt")
25822582
cookie_name, cookie_ext = os.path.splitext(httpcookie)
25832583
cookiefile = httpcookie
25842584
if(usehttp!="pycurl" or not havepycurl):

pywwwget_merged.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, us
25032503
if(isinstance(headers, list)):
25042504
headers = make_http_headers_from_list_to_dict(headers)
25052505
if(httpcookie is None):
2506-
httpcookie = os.devnull
2506+
httpcookie = tempfile.mktemp(suffix=".txt")
25072507
cookie_name, cookie_ext = os.path.splitext(httpcookie)
25082508
cookiefile = httpcookie
25092509
if(usehttp!="pycurl" or not havepycurl):

pywwwget_nextver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, us
24852485
if(isinstance(headers, list)):
24862486
headers = make_http_headers_from_list_to_dict(headers)
24872487
if(httpcookie is None):
2488-
httpcookie = os.devnull
2488+
httpcookie = tempfile.mktemp(suffix=".txt")
24892489
cookie_name, cookie_ext = os.path.splitext(httpcookie)
24902490
cookiefile = httpcookie
24912491
if(usehttp!="pycurl" or not havepycurl):

0 commit comments

Comments
 (0)