Skip to content

Commit

Permalink
Fix handling of binaryData .url keys
Browse files Browse the repository at this point in the history
  • Loading branch information
svolland-csgroup committed Jan 19, 2023
1 parent 749c90e commit 300f1db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ def _get_file_data_and_name(full_filename, content, enable_5xx, content_type=CON

if full_filename.endswith(".url"):
filename = full_filename[:-4]
file_data = request(file_data, "GET", enable_5xx).text
if content_type == CONTENT_TYPE_BASE64_BINARY:
file_url = file_data.decode('utf8')
file_data = request(file_url, "GET", enable_5xx).content
else:
file_data = request(file_data, "GET", enable_5xx).text
else:
filename = full_filename

Expand Down

0 comments on commit 300f1db

Please sign in to comment.