Fix all high and medium severity security issues found by Bandit
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -189,7 +189,7 @@ def convert_to_pdf(self, file_path, original_filename=None):
|
||||
log_task_progress(task_id, "call_gotenberg", "in_progress", "Calling Gotenberg API")
|
||||
|
||||
# Send the conversion request to Gotenberg
|
||||
response = requests.post(endpoint, files=files, data=form_data)
|
||||
response = requests.post(endpoint, files=files, data=form_data, timeout=settings.http_request_timeout)
|
||||
|
||||
if response.status_code == 200:
|
||||
# Save the converted PDF
|
||||
|
||||
Reference in New Issue
Block a user