Skip to content

Commit

Permalink
Merge branch 'master' into bleepbop/VIRTS-2743/abilities-api-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bleepbop authored Sep 1, 2021
2 parents d6b19b5 + 33d9085 commit 8f75bd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/service/file_svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def create_exfil_sub_directory(self, dir_name):
os.makedirs(path)
return path

async def save_multipart_file_upload(self, request, target_dir):
async def save_multipart_file_upload(self, request, target_dir, encrypt=True):
try:
reader = await request.multipart()
headers = CIMultiDict(request.headers)
Expand All @@ -80,7 +80,7 @@ async def save_multipart_file_upload(self, request, target_dir):
break
_, filename = os.path.split(field.filename)
await self.save_file(filename, bytes(await field.read()), target_dir,
encoding=headers.get('x-file-encoding'))
encrypt=encrypt, encoding=headers.get('x-file-encoding'))
self.log.debug('Uploaded file %s/%s' % (target_dir, filename))
return web.Response()
except Exception as e:
Expand Down

0 comments on commit 8f75bd7

Please sign in to comment.