Skip to content

Commit

Permalink
Update MadApkDownloadEndpoint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JabLuszko authored Sep 21, 2024
1 parent 51e677b commit 7e76166
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ class MadApkDownloadEndpoint(AbstractMitmReceiverRootEndpoint):

# TODO: Auth/preprocessing for autoconfig?
async def head(self):
logger.info("Device {} checking package {} (arch: {}) content-type", self.request.headers["origin"],
self.request.match_info.get('apk_type'), self.request.match_info.get('apk_arch'))
data_generator, response = await self.__handle_download_request()
return response

Expand All @@ -26,6 +28,8 @@ async def get(self):
return response

async def __handle_download_request(self):
logger.info("Device {} downloading package {} (arch: {}) content-type", self.request.headers["origin"],
self.request.match_info.get('apk_type'), self.request.match_info.get('apk_arch'))
parsed = self._parse_frontend()
apk_type, apk_arch = parsed
response = web.StreamResponse()
Expand Down

0 comments on commit 7e76166

Please sign in to comment.