From 96cbca2684d618b94d0877d73f5c42eb41e9e7a7 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 21 Sep 2023 00:05:21 +0200 Subject: [PATCH] Fixed content-type header on APK file downloads --- sbapp/sideband/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 8d6bec4..a2db5aa 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -2139,6 +2139,8 @@ class SidebandCore(): with open(path, 'rb') as f: data = f.read() self.send_response(200) + if path.lower().endswith(".apk"): + self.send_header("Content-type", "application/vnd.android.package-archive") self.end_headers() self.wfile.write(data) except Exception as e: