Skip to content

Commit 9ce7e74

Browse files
authored
Add files via upload
1 parent f329be5 commit 9ce7e74

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

PyWWW/pywwwget_nextver.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,8 +2175,6 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, ht
21752175
# Request with preload_content=False to get a file-like object
21762176
try:
21772177
extendargs.update({'url': rebuilt_url, 'method': httpmethod, 'headers': headers, 'preload_content': False, 'decode_content': True})
2178-
if(putfile is not None and sendfiles is not None):
2179-
sendfiles = None
21802178
if(httpmethod == "POST"):
21812179
if(putfile is not None and sendfiles is not None):
21822180
putfile = None

pywwwget_nextver.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,8 +2175,6 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__, ht
21752175
# Request with preload_content=False to get a file-like object
21762176
try:
21772177
extendargs.update({'url': rebuilt_url, 'method': httpmethod, 'headers': headers, 'preload_content': False, 'decode_content': True})
2178-
if(putfile is not None and sendfiles is not None):
2179-
sendfiles = None
21802178
if(httpmethod == "POST"):
21812179
if(putfile is not None and sendfiles is not None):
21822180
putfile = None

0 commit comments

Comments
 (0)