Skip to content

Commit 81b3f8d

Browse files
authored
Add files via upload
1 parent 44ed2f7 commit 81b3f8d

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
@@ -2222,7 +2222,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, re
22222222
httpcookie = os.devnull
22232223
cookie_name, cookie_ext = os.path.splitext(httpcookie)
22242224
cookiefile = httpcookie
2225-
if(usehttp!="pycurl"):
2225+
if(usehttp!="pycurl" or not havepycurl):
22262226
if(cookie_ext == ".lwp"):
22272227
policy = cookielib.DefaultCookiePolicy(netscape=True, rfc2965=False, hide_cookie2=True)
22282228
httpcookie = cookielib.LWPCookieJar(httpcookie, policy=policy)

pywwwget_deepseek.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2337,7 +2337,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, re
23372337
httpcookie = os.devnull
23382338
cookie_name, cookie_ext = os.path.splitext(httpcookie)
23392339
cookiefile = httpcookie
2340-
if(usehttp!="pycurl"):
2340+
if(usehttp!="pycurl" or not havepycurl):
23412341
if(cookie_ext == ".lwp"):
23422342
policy = cookielib.DefaultCookiePolicy(netscape=True, rfc2965=False, hide_cookie2=True)
23432343
httpcookie = cookielib.LWPCookieJar(httpcookie, policy=policy)

pywwwget_merged.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2257,7 +2257,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, re
22572257
httpcookie = os.devnull
22582258
cookie_name, cookie_ext = os.path.splitext(httpcookie)
22592259
cookiefile = httpcookie
2260-
if(usehttp!="pycurl"):
2260+
if(usehttp!="pycurl" or not havepycurl):
22612261
if(cookie_ext == ".lwp"):
22622262
policy = cookielib.DefaultCookiePolicy(netscape=True, rfc2965=False, hide_cookie2=True)
22632263
httpcookie = cookielib.LWPCookieJar(httpcookie, policy=policy)

pywwwget_nextver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, re
22382238
httpcookie = os.devnull
22392239
cookie_name, cookie_ext = os.path.splitext(httpcookie)
22402240
cookiefile = httpcookie
2241-
if(usehttp!="pycurl"):
2241+
if(usehttp!="pycurl" or not havepycurl):
22422242
if(cookie_ext == ".lwp"):
22432243
policy = cookielib.DefaultCookiePolicy(netscape=True, rfc2965=False, hide_cookie2=True)
22442244
httpcookie = cookielib.LWPCookieJar(httpcookie, policy=policy)

0 commit comments

Comments
 (0)