Skip to content

Commit 5f6287d

Browse files
authored
update dojo (#603)
* update dojo * revert * try 2.43.4 * trying 2.42.3 * try 2.39.4 * revert for testing * try 2.36.3 * back to 2.44.1 * add content type for xml dojo uploads * fix tuple * clean up mimetypes * change to guess_type
1 parent 43d5e9e commit 5f6287d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

defectdojo/Dockerfile.django

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM defectdojo/defectdojo-django:2.35.2 as dd
1+
FROM defectdojo/defectdojo-django:2.44.1 as dd
22

33
FROM dd as patch
44

zap/src/defectdojo_apiv2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import json
2+
import mimetypes
3+
import os
24

35
import requests
46
import requests.exceptions
@@ -687,6 +689,8 @@ def upload_scan(self, engagement_id, scan_type, file, active, verified, close_ol
687689
print("filedata:")
688690
print(filedata)
689691

692+
filedata = ('report.xml', filedata, mimetypes.guess_type(file)[0])
693+
690694
data = {
691695
'file': filedata,
692696
'engagement': ('', engagement_id),

0 commit comments

Comments
 (0)