mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Fixed content-type header on APK file downloads
This commit is contained in:
parent
5ca59cdf3b
commit
96cbca2684
@ -2139,6 +2139,8 @@ class SidebandCore():
|
|||||||
with open(path, 'rb') as f:
|
with open(path, 'rb') as f:
|
||||||
data = f.read()
|
data = f.read()
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
|
if path.lower().endswith(".apk"):
|
||||||
|
self.send_header("Content-type", "application/vnd.android.package-archive")
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
self.wfile.write(data)
|
self.wfile.write(data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user