Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
KazukiPrzyborowski authored Mar 17, 2024
1 parent 66dcc8b commit 8966e57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pycatfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6435,10 +6435,8 @@ def download_file_from_http_file(url, headers=geturls_headers_pycatfile_python_a
if parsed_url.port:
netloc += ':' + str(parsed_url.port);
rebuilt_url = urlunparse((parsed_url.scheme, netloc, parsed_url.path, parsed_url.params, parsed_url.query, parsed_url.fragment));

# Create a temporary file object
temp_file = tempfile.TemporaryFile();

temp_file = BytesIO();
if haverequests:
# Use the requests library if available
if username and password:
Expand Down

0 comments on commit 8966e57

Please sign in to comment.