Skip to content

Commit

Permalink
apks -> apkm
Browse files Browse the repository at this point in the history
Fix even more checks (?)
  • Loading branch information
JabLuszko authored Sep 20, 2024
1 parent ffb1b46 commit dc39ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mapadroid/madmin/endpoints/api/apks/MadApkEndpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def handle_file_upload(self, apk: io.BytesIO, apk_arch: Optional[APKArch],
except KeyError:
return web.Response(text="Non-supported Type / Architecture", status=406)
filename_split = filename.rsplit('.', 1)
if filename_split[1] in ['zip', 'apks']:
if filename_split[1] in ['zip', 'apkm']:
mimetype = 'application/zip'
elif filename_split[1] == 'apk':
mimetype = 'application/vnd.android.package-archive'
Expand Down

0 comments on commit dc39ec9

Please sign in to comment.